- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Prettier;
- Semi-colons 😌
- Double quotes 🧐
- 2 spaces 🫡
Install dependencies:
npm i -D eslint @lucasjsr/eslint-config
yarn add -D eslint @lucasjsr/eslint-config
Inside .eslintrc.json
Install dependencies:
npm i -D eslint @rocketseat/eslint-config
Inside .eslintrc.json
{
"extends": [
"@rocketseat/eslint-config/next",
"next/core-web-vitals"
]
}
Install dependencies:
npm i -D eslint @rocketseat/eslint-config
Inside .eslintrc.json
{
"extends": "@rocketseat/eslint-config/react"
}
Install dependencies:
npm i -D eslint @rocketseat/eslint-config
Inside .eslintrc.json
{
"extends": "@rocketseat/eslint-config/node"
}