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-var.js
generated
vendored
8
node_modules/eslint/lib/rules/no-var.js
generated
vendored
|
|
@ -90,7 +90,7 @@ function getScopeNode(node) {
|
|||
}
|
||||
}
|
||||
|
||||
/* istanbul ignore next : unreachable */
|
||||
/* c8 ignore next */
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -159,7 +159,7 @@ function hasReferenceInTDZ(node) {
|
|||
return !reference.init && (
|
||||
start < idStart ||
|
||||
(defaultValue !== null && start >= defaultStart && end <= defaultEnd) ||
|
||||
(start >= initStart && end <= initEnd)
|
||||
(!astUtils.isFunction(node) && start >= initStart && end <= initEnd)
|
||||
);
|
||||
});
|
||||
};
|
||||
|
|
@ -179,13 +179,13 @@ function hasNameDisallowedForLetDeclarations(variable) {
|
|||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require `let` or `const` instead of `var`",
|
||||
category: "ECMAScript 6",
|
||||
description: "Require `let` or `const` instead of `var`",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-var"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue