Skip to content

Commit

Permalink
Update eslint-plugin-eslint-plugin (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Apr 17, 2021
1 parent c88882e commit 3521a0a
Show file tree
Hide file tree
Showing 54 changed files with 113 additions and 54 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"enquirer": "2.3.6",
"eslint": "^7.23.0",
"eslint-ava-rule-tester": "^4.0.0",
"eslint-plugin-eslint-plugin": "^2.3.0",
"eslint-plugin-eslint-plugin": "^3.0.2",
"eslint-remote-tester": "^1.1.0",
"execa": "^5.0.0",
"listr": "^0.14.3",
Expand Down Expand Up @@ -142,6 +142,12 @@
}
}
}
],
"eslint-plugin/require-meta-docs-description": [
"error",
{
"pattern": ".+"
}
]
}
}
Expand Down
3 changes: 2 additions & 1 deletion rules/consistent-destructuring.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ module.exports = {
messages: {
[MESSAGE_ID]: 'Use destructured variables over properties.',
[MESSAGE_ID_SUGGEST]: 'Replace `{{expression}}` with destructured property `{{property}}`.'
}
},
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/custom-error-definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/empty-brace-spaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'whitespace',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/error-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ module.exports = {
description: 'Enforce passing a `message` value when creating a built-in error.',
url: getDocumentationUrl(__filename)
},
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/escape-case.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/new-for-builtins.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-abusive-eslint-disable.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ module.exports = {
description: 'Enforce specifying rules to disable in `eslint-disable` comments.',
url: getDocumentationUrl(__filename)
},
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-array-callback-reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ module.exports = {
description: 'Prevent passing a function reference directly to iterator methods.',
url: getDocumentationUrl(__filename)
},
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-array-for-each.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-array-reduce.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ module.exports = {
description: 'Disallow `Array#reduce()` and `Array#reduceRight()`.',
url: getDocumentationUrl(__filename)
},
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-console-spaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-for-loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
messages,
fixable: 'code'
fixable: 'code',
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-hex-escape.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
messages,
fixable: 'code'
fixable: 'code',
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-instanceof-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-lonely-if.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-nested-ternary.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
messages,
fixable: 'code'
fixable: 'code',
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-new-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-new-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-object-as-default-parameter.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = {
description: 'Disallow the use of objects as default parameters.',
url: getDocumentationUrl(__filename)
},
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-process-exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ module.exports = {
description: 'Disallow `process.exit()`.',
url: getDocumentationUrl(__filename)
},
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-static-only-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-this-assignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module.exports = {
description: 'Disallow assigning `this` to a variable.',
url: getDocumentationUrl(__filename)
},
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-unreadable-array-destructuring.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
messages,
fixable: 'code'
fixable: 'code',
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-unsafe-regex.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module.exports = {
description: 'Disallow unsafe regular expressions.',
url: getDocumentationUrl(__filename)
},
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-unused-properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ module.exports = {
description: 'Disallow unused object properties.',
url: getDocumentationUrl(__filename)
},
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/no-zero-fractions.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
messages,
fixable: 'code'
fixable: 'code',
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/number-literal-case.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-array-find.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-array-flat-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-array-index-of.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-array-some.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = {
description: 'Prefer `.some(…)` over `.find(…)`.',
url: getDocumentationUrl(__filename)
},
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-default-parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ module.exports = {
messages: {
[MESSAGE_ID]: 'Prefer default parameters over reassignment.',
[MESSAGE_ID_SUGGEST]: 'Replace reassignment with default parameter.'
}
},
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-dom-node-append.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-dom-node-dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-dom-node-remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-dom-node-text-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-includes.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ module.exports = {
messages: {
...messages,
...includesOverSomeRule.messages
}
},
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-keyboard-event-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-math-trunc.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
messages,
fixable: 'code'
fixable: 'code',
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-modern-dom-apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-negative-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
3 changes: 2 additions & 1 deletion rules/prefer-optional-catch-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages
messages,
schema: []
}
};
Loading

0 comments on commit 3521a0a

Please sign in to comment.