mocha-jscs
v5.0.1
Published
Add jscs as mocha test in your test suite.
Downloads
2,906
Readme
mocha-jscs
Add jscs as mocha test in your test suite.
Usage
npm install mocha-jscs --save-dev
Make sure you have a jscs config defined using either:
- a .jscs.json file in your project root
- or jscs options in your package.json
In your config you should use one of the available presets or for more advanced configurations, define your own set of rules.
Next, add this to test/index.js
in your project, with the following content:
require("mocha-jscs")();
You can also config the paths to run against:
require("mocha-jscs")(["./lib"]); // Array of paths
That's it! You are done.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request