1.0.1 • Published 1 year ago

eslint-plugin-no-excessive-ts-ignore v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

eslint-plugin-no-excessive-ts-ignore

Limit amount of @ts-ignore / @ts-nocheck / @ts-expect-error comments in project

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-no-excessive-ts-ignore:

npm install eslint-plugin-no-excessive-ts-ignore --save-dev

Usage

Add no-excessive-ts-ignore to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["no-excessive-ts-ignore"]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "no-excessive-ts-ignore/expect-error": ["error", 5] // 10 is default limit,
        "no-excessive-ts-ignore/ignore": ["error", 5] // 10 is default limit,
        "no-excessive-ts-ignore/nocheck": ["error", 5] // 10 is default limit,
    }
}
1.0.1

1 year ago

1.0.0

1 year ago

0.0.1

1 year ago