@gearbox-protocol/eslint-config
v2.0.0-next.2
Published
Eslint config for gearbox projects
Downloads
633
Keywords
Readme
@gearbox-protocol/eslint-config
Eslint config to use in gearbox projects
Usage
Install:
$ yarn add -D @gearbox-protocol/eslint-config eslint
Add .eslintrc.json
file to a repo with following content:
{
"root": true,
"extends": ["@gearbox-protocol/eslint-config"]
}
For React projects use
{
"root": true,
"extends": ["@gearbox-protocol/eslint-config/react"]
}
Overriding some rules
You can use even stricter rules locally
Add .eslint.local.json
with stricter rules to your project root and to .gitignore
. Put your overrides there, e.g.:
{
"rules": {
"unused-imports/no-unused-imports": "error"
}
}