@alliance-software/eslint-config-react
v5.1.0
Published
Alliance Software eslint configuration for React apps
Downloads
75
Readme
eslint-config-react
eslint config for React projects. Extends eslint-config.
Usage
# yarn projects
yarn add @alliance-software/eslint-config-react eslint
Create a .eslintrc
that extends react-alliance
:
{
"extends" : [
"@alliance-software/eslint-config-react"
]
}
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
- 5.x
- 5.1.0
- Remove deprecated jsx-a11y/label-has-for
- 5.0.1
- Upgrade to eslint 5, eslint-config-alliance 4
- 5.1.0
- 4.x
- 4.0.0
- Turn on prop type checking
- Remove restriction on calling setState in componentDidMount
- 4.0.0
- 3.x
- 3.1.1
- Remove deprecated react/jsx-space-before-closing rule
- 3.1.0
- Update to work with react 17. Requires update to eslint-plugin-react >=7.5
- 3.0.2
- Update a11y rules
- 3.0.1
- Broaden dependency ranges
- 3.0.0
- Breaking Changes
- Upgrade to eslint 4, eslint-plugin-react 7 and eslint-plugin-jsx-a11y 4
- Remove ignored deprecated settings
- Breaking Changes
- 3.1.1