- Airbnb config base;
- Import plugin;
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
Install dependencies:
npm i -D eslint @aluisio/eslint-config
Inside .eslintrc.json
{
"extends": [
"@aluisio/eslint-config/next"
]
}
Inside .eslintrc.json
{
"extends": "@aluisio/eslint-config/react"
}
Inside .eslintrc.json
{
"extends": "@aluisio/eslint-config/node"
}
You can override any ESLint config by changing your own .eslintrc.json
file. The example below changes Enforce a maximum line length.
{
"extends": [
"@aluisio/eslint-config/next",
"rules": {
"max-len": [ "warn", { "code": 180 } ]
}
]
}