Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
6
node_modules/eslint/lib/rules/no-empty-function.js
generated
vendored
6
node_modules/eslint/lib/rules/no-empty-function.js
generated
vendored
|
|
@ -89,13 +89,13 @@ function getKind(node) {
|
|||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow empty functions",
|
||||
category: "Best Practices",
|
||||
description: "Disallow empty functions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-empty-function"
|
||||
},
|
||||
|
|
@ -144,7 +144,7 @@ module.exports = {
|
|||
filter: astUtils.isCommentToken
|
||||
});
|
||||
|
||||
if (allowed.indexOf(kind) === -1 &&
|
||||
if (!allowed.includes(kind) &&
|
||||
node.body.type === "BlockStatement" &&
|
||||
node.body.body.length === 0 &&
|
||||
innerComments.length === 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue