Is there a way to disable use of eslint disable overrides?
For example, block the use of /* eslint disable-next-line */
, etc so that a specific rule is enforced always without exception
Asked
Active
Viewed 263 times
2

cobbdb
- 623
- 1
- 5
- 7
1 Answers
0
https://eslint.org/docs/user-guide/configuring/rules#disabling-inline-comments
To disable all inline config comments, use the noInlineConfig setting. For example:
{
"rules": {...},
"noInlineConfig": true
}
Unfortunately it's only global, you can't target a specific rule.

Sam Borick
- 935
- 2
- 10
- 31