Skip to content

[ban-ts-comment] // @ts-expect-error should be recognized #1709

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthas prthere is a PR raised to close thispackage: 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