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:
regexowl 2024-03-14 11:22:41 +01:00 committed by Klara Simickova
parent 0d2735fe0f
commit d2ea46f243

View file

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