Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
7
node_modules/eslint/lib/rules/no-shadow.js
generated
vendored
7
node_modules/eslint/lib/rules/no-shadow.js
generated
vendored
|
|
@ -32,7 +32,7 @@ module.exports = {
|
|||
docs: {
|
||||
description: "Disallow variable declarations from shadowing variables declared in the outer scope",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-shadow"
|
||||
url: "https://eslint.org/docs/latest/rules/no-shadow"
|
||||
},
|
||||
|
||||
schema: [
|
||||
|
|
@ -67,6 +67,7 @@ module.exports = {
|
|||
allow: (context.options[0] && context.options[0].allow) || [],
|
||||
ignoreOnInitialization: context.options[0] && context.options[0].ignoreOnInitialization
|
||||
};
|
||||
const sourceCode = context.sourceCode;
|
||||
|
||||
/**
|
||||
* Checks whether or not a given location is inside of the range of a given node.
|
||||
|
|
@ -318,8 +319,8 @@ module.exports = {
|
|||
}
|
||||
|
||||
return {
|
||||
"Program:exit"() {
|
||||
const globalScope = context.getScope();
|
||||
"Program:exit"(node) {
|
||||
const globalScope = sourceCode.getScope(node);
|
||||
const stack = globalScope.childScopes.slice();
|
||||
|
||||
while (stack.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue