directive-no-restricted-disable
Disallow eslint-disable and oxlint-disable directives that turn off a restricted rule or every rule.
Why
Some rules guard policy that a local exception must not waive, such as the suppression rules themselves. A directive that disables every rule also disables those.
Fix
Fix the reported code instead, or name only rules that may be disabled.
Examples
// eslint-disable-next-line no-console -- the CLI prints its reportconsole.log(report);// eslint-disable-next-line no-debugger -- a breakpoint for the demodebugger;