debian-image-builder-frontend/.eslintrc-typescript.yml
regexowl d2ea46f243 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.
2024-03-14 15:04:12 +01:00

13 lines
325 B
YAML

extends: [
"plugin:@typescript-eslint/recommended",
]
rules:
"@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