Skip to content

Lint for ineffective eslint disable rules #260

@jasikpark

Description

@jasikpark

When trying to disable an eslint rule for the file, Zed generated this comment,
/** eslint-disable @typescript-eslint/unbound-method */, which doesn't disable the rule for the file.

The correct comment is /* eslint-disable @typescript-eslint/unbound-method */.

-/** eslint-disable @typescript-eslint/unbound-method */
+/* eslint-disable @typescript-eslint/unbound-method */

I'd argue this is an edge-case bug in eslint proper, but barring that, maybe there should be a lint rule for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions