Greenberry eslint-config v3
ESLint and Prettier bundle for all things Greenberry.
Install
npm i -D @greenberry/eslint-config
Upgrade from v2.0.0
Remove redundant packages:
npm remove @greenberry/eslint-config eslint
Install the latest version eslint-config:
npm i -D @greenberry/eslint-config
React
package.json
:
{
"scripts": {
"lint": "eslint src --fix"
}
}
.eslintrc
:
{
"extends": "@greenberry/eslint-config"
}
NextJS
⚠️ Requires eslint-config-next @11.1.4
package.json
:
{
"scripts": {
"lint": "next lint --fix"
}
}
}
.eslintrc
:
{
"extends": ["next/core-web-vitals", "@greenberry/eslint-config"]
}