Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
8
node_modules/eslint/lib/rules/no-extra-semi.js
generated
vendored
8
node_modules/eslint/lib/rules/no-extra-semi.js
generated
vendored
|
|
@ -16,13 +16,13 @@ const astUtils = require("./utils/ast-utils");
|
|||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow unnecessary semicolons",
|
||||
category: "Possible Errors",
|
||||
description: "Disallow unnecessary semicolons",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-extra-semi"
|
||||
},
|
||||
|
|
@ -98,7 +98,7 @@ module.exports = {
|
|||
"WithStatement"
|
||||
];
|
||||
|
||||
if (allowedParentTypes.indexOf(parent.type) === -1) {
|
||||
if (!allowedParentTypes.includes(parent.type)) {
|
||||
report(node);
|
||||
}
|
||||
},
|
||||
|
|
@ -117,7 +117,7 @@ module.exports = {
|
|||
* @param {Node} node A MethodDefinition node of the start point.
|
||||
* @returns {void}
|
||||
*/
|
||||
MethodDefinition(node) {
|
||||
"MethodDefinition, PropertyDefinition, StaticBlock"(node) {
|
||||
checkForPartOfClassBody(sourceCode.getTokenAfter(node));
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue