Linters are great for projects. Use this as an example for how to setup a custom set of rules.
By default, this plugin extends the airbnb base rules;
$ npm i -g eslint -D$ npm i eslint-config-mikewilcox -D
Now add an eslint config file to your project...
$ touch .eslintrc
You can then lint files using this extension by running eslint on the files you wish to:
$ eslint foo.js
...or to make it part of your project's build step, you can add a lint task to your npm scripts:
"scripts":"lint": "eslint src"