1.0.4 • Published 6 months ago
@douglasmatosdev/eslint-config v1.0.4
eslint-config
Requirements
- 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",
],
Installation
yarn add -D @douglasmatosdev/eslint-config
Setup
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"]
}
Obs.: Reload VSCode