Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
8
node_modules/eslint/lib/rules/no-var.js
generated
vendored
8
node_modules/eslint/lib/rules/no-var.js
generated
vendored
|
|
@ -187,7 +187,7 @@ module.exports = {
|
|||
docs: {
|
||||
description: "Require `let` or `const` instead of `var`",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-var"
|
||||
url: "https://eslint.org/docs/latest/rules/no-var"
|
||||
},
|
||||
|
||||
schema: [],
|
||||
|
|
@ -199,7 +199,7 @@ module.exports = {
|
|||
},
|
||||
|
||||
create(context) {
|
||||
const sourceCode = context.getSourceCode();
|
||||
const sourceCode = context.sourceCode;
|
||||
|
||||
/**
|
||||
* Checks whether the variables which are defined by the given declarator node have their references in TDZ.
|
||||
|
|
@ -210,7 +210,7 @@ module.exports = {
|
|||
if (!declarator.init) {
|
||||
return false;
|
||||
}
|
||||
const variables = context.getDeclaredVariables(declarator);
|
||||
const variables = sourceCode.getDeclaredVariables(declarator);
|
||||
|
||||
return variables.some(hasReferenceInTDZ(declarator.init));
|
||||
}
|
||||
|
|
@ -268,7 +268,7 @@ module.exports = {
|
|||
* @returns {boolean} `true` if it can fix the node.
|
||||
*/
|
||||
function canFix(node) {
|
||||
const variables = context.getDeclaredVariables(node);
|
||||
const variables = sourceCode.getDeclaredVariables(node);
|
||||
const scopeNode = getScopeNode(node);
|
||||
|
||||
if (node.parent.type === "SwitchCase" ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue