Skip to content

[prefer-ts-expect-error] ignores block comments #2531

@MhMadHamster

Description

@MhMadHamster
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have read the FAQ and my problem is not listed.

Repro

{
  "rules": {
    "@typescript-eslint/prefer-ts-expect-error": "error",
  }
}
{/* @ts-ignore */}
const x: string = 1;

Expected Result
Error that @ts-expect-error should be used instead of @ts-ignore.

Actual Result
No error.

Additional Info

Versions

package version
@typescript-eslint/eslint-plugin 4.1.1-alpha.7
@typescript-eslint/parser 4.1.0
TypeScript 4.0.2
ESLint 7.8.1
node 12.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomerspackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions