@gearbox-protocol/eslint-config

2.0.0-next.2 • Public • Published

@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"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @gearbox-protocol/eslint-config

Weekly Downloads

177

Version

2.0.0-next.2

License

MIT

Unpacked Size

4.12 kB

Total Files

4

Last publish

Collaborators

  • de-snake
  • ark57
  • llya.s
  • lekho
  • gearbox-dev
  • elliotyagami
  • van0k
  • doomsower
  • apeir99n
  • essserrr
  • mikaella