@ww-digital/eslint-config

ESlint config file for WWI

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@ww-digital/eslint-config
1.1.14 years ago5 years agoMinified + gzip package size for @ww-digital/eslint-config in KB

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

  1. From the root of your project, run:
```
npm i -D @ww-digital/eslint-config
```
  1. Add this to your package.json in the scripts section:
```
"eslint": "eslint ./"
```
  1. Add this .eslintrc file to the root of your project:
```js
{
  "extends": "@ww-digital/eslint-config/nodejs",
  "rules": {}
}
```

** You may substitute `angularjs` for `nodejs`
  1. 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.