1.2.0 • Published 2 years ago
@lucaseduardoio/eslint-config v1.2.0
ESLint config
Whats included?
- standard;
- react;
- react-hooks;
- jsx-a11y;
- prettier;
- eslint-plugin-import-helpers;
Setup
- Install the dependencies
npm i -D eslint @lucaseduardoio/eslint-config- Create a
.eslintrc.jsonfile extending the config:
{
"extends": "@lucaseduardoio/eslint-config/react"
// "extends": "@lucaseduardoio/eslint-config/node"
}- You can add/override any ESLint config by changing your own
.eslintrc.jsonfile. The example below will only add the self-closing tag rule and leave all the default rules untouched.
{
"extends": "@lucaseduardoio/eslint-config/react",
"rules": {
"react/self-closing-comp": "error"
}
}You can also use a
.eslintrc.jsinstead of JSON if you prefer.Inspiration from the rocketseat repository