Shareable eslint config as used by micro-tools and nodefluent.
Install this module (and eslint) and add it to package.json's devDependencies:
npm install -D eslint-configuration
Create a basic .eslintrc.json file in your project's root:
Add your own rules/global to this config file.
- add a run script to your package.json:
- create an .eslintignore to exclude generated code, e.g. istanbul coverage reports
This package will install a pre-commit-hook into your project that runs "npm run lint" prior each commit.
If you want to disable specific rules selectively see eslint documentation.