JSCS and JSHint configuration for Meteor Style Guide rules.
- Install JSCS:
npm install -g jscs
- Install JSHint:
npm install -g jshint
- Copy jscsrc to your home directory:
cp ~/stylejs/jscsrc ~/.jscsrc
- Copy jshintrc toyour home directory:
cp ~/stylejs/jshintrc ~/.jshintrc
There are many JSCS integrations for Sublime Text, Vim and PHPStorm. There are also many integrations for JSHint on those same applications (Sublime Text, Vim and PHPStorm).
The alternative to these integrations is to run the binaries yourself on the command line:
jscs $PATH
will do recursive checks in a directory or check a specific path. The .jscsrc rules are applied automatically.jshint $PATH
will acts the same as JSCS.