@alliance-software/eslint-config
v4.0.0
Published
Alliance Software eslint configuration
Downloads
76
Readme
eslint-config
eslint for Alliance projects. For react projects see eslint-config-react
Usage
# yarn projects
yarn add @alliance-software/eslint-config
Create a `.eslintrc` with an `extends` rule that includes `alliance`, eg.
{ "extends" : [ "@alliance-software/eslint-config" ], "env" : { "browser" : true } }
In the `scripts` key in `package.json` add:
{ "lint": "eslint ./src", "lint:fix": "npm run lint -- --fix", }
where `./src` is the directory you want to run linting on.
## Changelog
* 4
* 4.0.0
* eslint 5+ dep
* Remove deprecated parser options for use with babel7
* 3
* 3.0.1
* Broaden dependency ranges
* 3.0.0
* Breaking Changes
* Upgrade to eslint 4
* no-class-assign => off (HOC in React often reassign class)
* import/no-named-as-default => off (export connected & unconnected components)
* no-unused-vars => ignoreRestSiblings: true (destructure to exclude vars before passing on rest)