Share your code.
Add jscs as mocha test in your test suite.
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
Next, add this to
test/index.js in your project, with the following content:
You can also config the paths to run against:
"./lib"; // Array of paths
That's it! You are done.
- 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