Skip to content

oxlint and eslint in parallel with reportUnusedDisableDirectives setting causes eslint disables to be flagged as unused #20375

@osdiab

Description

@osdiab

Hi, I am trying to use ESLint and oxlint together with the reportUnusedDisableDirectives setting enabled, because not all the rules we are using are present in oxlint yet. However, if I disable a rule that is in eslint, oxlint will now complain that the eslint-disable-next-line rule is not doing anything even though it is... for eslint.

One way I imagine would work for me is if there were a configuration setting like disableEslintCommentCompatibility: boolean that just didn't consider eslint-* comments as valid ways to disable/enable rules inline for oxlint. Then I could use eslint-disables for eslint, and oxlint-disables for oxlint.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions