While I have a pretty good .eslintrc
file, I sometimes need to break some rule intentionally (could be as simple as a temporary console.log, or even one that's supposed to stay).
However, I feel using the raw inline // eslint-disable-rule
is a pitfall, because of multiple reasons :
- If you have multiple warnings on the same line, it could easily silence the warning of a rule you weren't aware you broke
- Always specifying a rule is way more readable because it shows the intent way more clearly
That's why I'm looking for an option to force specifying the rule(s) when you want to disable a line. Is there a way to achieve this ?