ESlint configuration recommended by Davi Gonçalves Valério.
React | Next | Nest | |
---|---|---|---|
Google config base | ✅ | ✅ | ✅ |
Import Helpers plugin | ✅ | ✅ | |
React plugin | ✅ | ✅ | |
React Hooks plugin | ✅ | ||
JSX a11y plugin | ✅ | ✅ | |
Prettier | ✅ | ✅ | ✅ |
JSDoc Plugin | ✅ |
- Install the dependencies
npm i -D eslint @dgvalerio/eslint-config
- Create a
.eslintrc.json
file extending the config:
If you want to set up a ReactJS project:
If you want to set up a Next.js project:{ "extends": "@dgvalerio/eslint-config/react" }
If you want to set up a NestJS project:{ "extends": "@dgvalerio/eslint-config/next" }
{ "extends": "@dgvalerio/eslint-config/nest" }