Rules

no-eslint-disable-comments

Use Oxlint suppression directives instead of ESLint directives.

Purpose and behavior

Use Oxlint suppression directives instead of ESLint directives.

The rule detects eslint-disable, eslint-disable-line and eslint-disable-next-line in line and block comments. Fixes replace the directive name and keep the rule list and reason. Also enable require-disable-reason.

Options

No configurable options. Enable with "rules/no-eslint-disable-comments": "error".

Invalid example

// eslint-disable-next-line no-console
console.log(1)

Valid example

// oxlint-disable-next-line no-console -- boundary logging
console.log(1)

Fixes and exceptions

This rule provides automatic fixes. Review each fix before applying it.

For a boundary exception, use oxlint-disable-next-line rules/no-eslint-disable-comments -- reason. Examples cover this rule only and may omit imports or declarations.

Source and tests

Enabled by the TypeScript preset.

no-eslint-disable-comments.ts · Tests