@bitgrow/eslint-config
v1.0.8
Published
ESLint configuration used by Bitgrow.
Downloads
107
Readme
Bitgrow ESLint config
Whats included?
- Standard config base;
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Prettier;
Setup
NextJS
Install dependencies:
npm i -D eslint @bitgrow/eslint-config
Inside .eslintrc.json
{
"extends": [
"@bitgrow/eslint-config/next",
"next/core-web-vitals"
]
}
React
Install dependencies:
npm i -D eslint @bitgrow/eslint-config
Inside .eslintrc.json
{
"extends": "@bitgrow/eslint-config/react"
}
Node.js (AdonisJS, Nestjs...)
Install dependencies:
npm i -D eslint @bitgrow/eslint-config
Inside.eslintrc.json
, if you have configs, delete all and set something this:
{
"extends": "@bitgrow/eslint-config/node"
}