ban-ts-comment
Configuration
rslint.config.ts
Rule Details
Disallow @ts-<directive> comments or require descriptions after directives. TypeScript provides several directive comments (@ts-expect-error, @ts-ignore, @ts-nocheck, @ts-check) that alter how the compiler processes code. Overusing these directives can hide real errors and reduce type safety.
By default, @ts-expect-error, @ts-ignore, and @ts-nocheck are banned. Directives can optionally be allowed if accompanied by a description meeting a minimum length requirement.
Examples of incorrect code for this rule:
Examples of correct code for this rule: