ESLint: Turn ban-ts-comments rule on
This turns on ban-ts-comments and adds a few configurations to it. ts-expect-error and ts-ignore are allowed, but only when accompanied by a description clarifying their usage. The minimum length of the description is set to 5.
This commit is contained in:
parent
0d2735fe0f
commit
d2ea46f243
1 changed files with 7 additions and 1 deletions
|
|
@ -3,5 +3,11 @@ extends: [
|
|||
]
|
||||
|
||||
rules:
|
||||
"@typescript-eslint/ban-ts-comment": off
|
||||
"@typescript-eslint/ban-ts-comment":
|
||||
- error
|
||||
- ts-expect-error: 'allow-with-description'
|
||||
ts-ignore: 'allow-with-description'
|
||||
ts-nocheck: true
|
||||
ts-check: true
|
||||
minimumDescriptionLength: 5
|
||||
"@typescript-eslint/ban-types": off
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue