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.
13 lines
325 B
YAML
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
|