eslint-plugin-no-excessive-ts-ignore
v1.0.1
Published
limit amount of ts-ignore-like comments in project
Downloads
4
Maintainers
Readme
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,
}
}