- Standard config base;
- React plugin;
- React Hooks plugin;
- No Only Tests plugin;
- Import Helpers Order Imports;
- JSX a11y plugin;
- Prettier;
- Does not have commas at the end;
- In this case, it is not necessary to create the .prettier file in the project root, as the eslintrc configured in this package already contains the exact settings for prettier.
- Note: Remove the prettier extension and install the eslint extension
Install dependencies:
npm i -D eslint @pedrohvfernandes/eslint-config
Inside .eslintrc.json
{
"extends": [
"@pedrohvfernandes/eslint-config/next",
"next/core-web-vitals"
]
}
Install dependencies:
npm i -D eslint @pedrohvfernandes/eslint-config
Inside .eslintrc.json
{
"extends": "@pedrohvfernandes/eslint-config/react"
}
Install dependencies:
npm i -D eslint @pedrohvfernandes/eslint-config
Inside .eslintrc.json
{
"extends": "@pedrohvfernandes/eslint-config/node"
}
Install dependencies:
npm i -D eslint @pedrohvfernandes/eslint-config
Inside .eslintrc.json
{
"extends": "@pedrohvfernandes/eslint-config/myconfigreact"
}
Install dependencies:
npm i -D eslint @pedrohvfernandes/eslint-config
Inside .eslintrc.json
{
"extends": "@pedrohvfernandes/eslint-config/myconfignode"
}