resin-lint coffeelint & coffeescope2 wrapper
Last updated 5 months ago by .
Apache 2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install resin-lint 
SYNC missed versions from official npm registry.


resin-lint is a linter based on coffeelint, coffeescope2, tslint and prettier to detect style errors based on coding guidelines.


resin-lint uses Resin's coffeelint.json, tslint.json and .prettierrc. If a coffeelint.json or tslint.json is found in the to-be-linted project directory or its parents then the rules found in it will be merged with the default resin-lint ones. Another way to to override the default resin-lint rules is by specifying a configuration file with the -f parameter.


By default, only .coffee files will be linted. .ts and .tsx files can be linted by using the --typescript parameter.


You can reference the prettier configuration file to your consumer project from ./config/.prettierrc. You can disable the prettier format checks by using the --no-prettier parameter.


You can use this module as:

  1. A standalone project by installing it with npm install -g resin-lint:
kostas@macbook:~/resin/test$ resin-lint src/
  ✓ src/

  ✓ Ok! » 0 errors and 0 warnings in 1 file
  1. A development dependency in package.json with npm install --save-dev resin-lint. Then you can use the module in your build/testing process:
"scripts": {
  "lint": "resin-lint src/ && echo \"Done!\""

kostas@macbook:~/resin/test$ npm run lint

> test@1.0.0 lint /Users/kostas/resin/test
> resin-lint src/ && echo "Done!"

  ✓ src/

  ✓ Ok! » 0 errors and 0 warnings in 1 file


  1. A development dependency, that will get picked up by your IDE/Editor coffeelint/tslint/prettier.

Manually create these config files in your project root:


// if using prettier in your project
	"extends": [

// plain TypeScript
	"extends": [

For coffeelint create coffeelint.json

	"extends": [

For prettier config create .prettierrc.js

const fs = require('fs');

module.exports = JSON.parse(fs.readFileSync('./node_modules/resin-lint/config/.prettierrc', 'utf8'));


If you're having any problem, please raise an issue on GitHub and the team will be happy to help.


Run the test suite by doing:

$ npm install && npm test


Before submitting a PR, please make sure that you include tests, and that npm run lint runs without a warning.


The project is licensed under the Apache 2.0 license.

Current Tags

72 Versions

Maintainers (1)
Today 0
This Week 72
This Month 259
Last Day 72
Last Week 187
Last Month 1,108
Dependencies (18)
Dev Dependencies (3)
Dependents (0)

Copyright 2014 - 2016 © |