Say I want to use this rule:
https://eslint.org/docs/rules/no-debugger
however, I have about 15 files where I want to keep debugger; statements.
Is there
Probably your IDE can help. If you are using VS Code, you can mouse over debugger
, click Quick Fix...
, and select Disable no-debugger for the entire file
, as shown as below:
Then the IDE will add the following comment at the top of the file to disable the rule for you:
/* eslint-disable no-debugger */
See more on the eslint no-debugger rule.