@instea/eslint-config-react
v1.2.0
Published
ESLint config for React projects
Downloads
124
Readme
@instea/eslint-plugin-react
Default ESLint rules for React projects.
Installation
yarn add --dev prettier eslint
yarn add --dev @instea/eslint-config-react
Usage
Extend from this plugin in eslint configuration:
{
"extends": ["@instea/react"]
}
Create .prettierrc
file with this content:
{
"semi": true,
"singleQuote": true,
"printWidth": 80,
"trailingComma": "es5",
"arrowParens": "avoid"
}
Run eslint using yarn:
yarn eslint . --max-warnings 0