Rule: ban-ts-ignore
Bans “// @ts-ignore” comments from being used.
Notes:
TS Only
Config
Not configurable.
Config examples
"ban-ts-ignore": true
Schema
null
Code examples:
Disallows the use of "@ts-ignore"
"rules": { "ban-ts-ignore": true }
Passes
if (false) {
// Compiler warns about unreachable code error
console.log("hello");
}
Fails
if (false) {
// @ts-ignore: Unreachable code error
console.log("hello");
}