1.1.1 • Published 7 years ago
@ww-digital/eslint-config v1.1.1
@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-configAdd this to your
package.jsonin thescriptssection:"eslint": "eslint ./"Add this
.eslintrcfile to the root of your project:{ "extends": "@ww-digital/eslint-config/nodejs", "rules": {} }** You may substitute
angularjsfornodejsThen 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.