diff --git a/.eslintrc.json b/.eslintrc.json index b5e2c49d8..d33a7d0c3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -24,12 +24,10 @@ "warn", { "tabWidth": 2, - // Note: exclude all eslint- directives except for max-len itself - // since `// eslint-disable-line max-len` would cause this line to be - // ignored AND this rule to be disabled which would trigger - // --report-unused-disable-directives. By excluding max-len, the effect - // is to consider the line but disable this rule. - "ignorePattern": "^/// .+|// (?!eslint-.+max-len)eslint-.+|QUnit.", + // Exclude by default: + // - `eslint-` directives. To avoid having to disable + // eslint for a long eslint-disable line. + "ignorePattern": "^// eslint-.+", "ignoreUrls": true, "ignoreComments": false, "ignoreRegExpLiterals": true,