- node
>=18.17.0
- VSCode
- Install ESLint VSCode Extension
- Go to:
File -> Preferences -> Settings -> Open Setting (JSON)
set the code below
// VSCode JSON Settings
"eslint.workingDirectories": [
"src",
"app",
],
yarn add -D @douglasmatosdev/eslint-config
Add in your package.json
below settings
// package.json
"prettier": "@douglasmatosdev/eslint-config/prettier",
"eslintConfig": {
"extends": "@douglasmatosdev/eslint-config/eslint"
}
Add in your .eslintrc.json
beloow settings
// .eslitrc.json
{
"extends": ["next/core-web-vitals", "@douglasmatosdev/eslint-config/eslint"]
}