eslint-config-linkcs-react
v0.3.1
Published
Custom eslint config based on airbnb
Downloads
18
Readme
LinkCS's react eslint config
How to Use
Install
With yarn
:
yarn add -D eslint-config-linkcs-react
or with npm
:
npm install --save-dev eslint-config-linkcs-react
And then add in a .eslintrc
file:
{
"extends": ["linkcs-react"]
}
Dependencies
imports:
- eslint: 5.6.0
- eslint-config-airbnb: 17.1.0
- eslint-plugin-import: 2.14.0
- eslint-plugin-jsx-a11y: 6.1.1
- eslint-plugin-react: 7.11.1
Rules
Use airbnb's config and changes some rules:
- Disable PropTypes
- Disable/change some rules about a11y
- Change some rules regarding the formating of the code that works better with prettier and long lines
- Change order of the methods in the definition of a react component:
order:
- static methods
- lifecycle methods
- on<Keyword> attributes
- handle<Keyword> attributes
- everything-else
- _<Keyword> attributes
- render()