Skip to content

linter: --report-unused-disable-directives does not work for multiple rules #11709

Closed
@Sysix

Description

@Sysix

What version of Oxlint are you using?

1.11.0

What command did you run?

oxlint --report-unused-disable-directives

What does your .oxlintrc.json config file look like?

{
  "rules": {
    "no-debugger": "error",
    "no-console": "error"
  }
}

What happened?

oxlint should report unused-disable-directives with sub spans for rules.

Example:

// oxlint-disable-next-line no-console no-debugger -- no console should be reported
(() => { debugger; })();

Would be great because #11708 is implementing a fix for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions