Enable reportUnusedDisableDirectives for ESLint, address new warning.

This commit is contained in:
David Anson 2020-10-20 19:56:16 -07:00
parent a971361cf2
commit aafd0830a2
2 changed files with 1 additions and 1 deletions

View file

@ -22,6 +22,7 @@
} }
} }
}, },
"reportUnusedDisableDirectives": true,
"rules": { "rules": {
"array-bracket-spacing": ["error", "always"], "array-bracket-spacing": ["error", "always"],
"array-element-newline": "off", "array-element-newline": "off",

View file

@ -38,7 +38,6 @@ const schema = {
const tags = {}; const tags = {};
// Add rules // Add rules
// eslint-disable-next-line complexity
rules.forEach(function forRule(rule) { rules.forEach(function forRule(rule) {
rule.tags.forEach(function forTag(tag) { rule.tags.forEach(function forTag(tag) {
const tagRules = tags[tag] || []; const tagRules = tags[tag] || [];