Repro
{
"rules": {
"@typescript-eslint/ban-ts-comment": "error"
}
}
In TypeScript@next (3.9):
// @ts-expect-error
let invalid: number = "nope";
Expected Result
As of microsoft/TypeScript#36014, // @ts-expect-error should be recognized and able to be banned by @typescript-eslint/ban-ts-comment.
Actual Result
It isn't yet.
Versions
| package |
version |
@typescript-eslint/eslint-plugin |
2.22.1-alpha.6 |
@typescript-eslint/parser |
2.22.0 |
TypeScript |
3.8.3 |
ESLint |
6.8.0 |
node |
v12.4.0 |
npm |
6.9.0 |
Repro
{ "rules": { "@typescript-eslint/ban-ts-comment": "error" } }In TypeScript@next (3.9):
Expected Result
As of microsoft/TypeScript#36014,
// @ts-expect-errorshould be recognized and able to be banned by@typescript-eslint/ban-ts-comment.Actual Result
It isn't yet.
Versions
@typescript-eslint/eslint-plugin2.22.1-alpha.6@typescript-eslint/parser2.22.0TypeScript3.8.3ESLint6.8.0nodev12.4.0npm6.9.0