@ww-digital/eslint-config
v1.1.1
Published
ESlint config file for WWI
Downloads
85
Maintainers
Readme
@ww-digital/eslint-config
Requirements
- eslint 4.x is a dependency, so make sure your project doesn't already have a conflicting version
Install
From the root of your project, run:
npm i -D @ww-digital/eslint-config
Add this to your
package.json
in thescripts
section:"eslint": "eslint ./"
Add this
.eslintrc
file to the root of your project:{ "extends": "@ww-digital/eslint-config/nodejs", "rules": {} }
** You may substitute
angularjs
fornodejs
Then you can simply run:
npm run eslint
Modifying rules
You can add rules specific to your project in the .eslintrc
file that was created in the root of your project.