Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
6
node_modules/eslint/lib/rules/no-catch-shadow.js
generated
vendored
6
node_modules/eslint/lib/rules/no-catch-shadow.js
generated
vendored
|
|
@ -24,7 +24,7 @@ module.exports = {
|
|||
docs: {
|
||||
description: "Disallow `catch` clause parameters from shadowing variables in the outer scope",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-catch-shadow"
|
||||
url: "https://eslint.org/docs/latest/rules/no-catch-shadow"
|
||||
},
|
||||
|
||||
replacedBy: ["no-shadow"],
|
||||
|
|
@ -39,6 +39,8 @@ module.exports = {
|
|||
|
||||
create(context) {
|
||||
|
||||
const sourceCode = context.sourceCode;
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Helpers
|
||||
//--------------------------------------------------------------------------
|
||||
|
|
@ -60,7 +62,7 @@ module.exports = {
|
|||
return {
|
||||
|
||||
"CatchClause[param!=null]"(node) {
|
||||
let scope = context.getScope();
|
||||
let scope = sourceCode.getScope(node);
|
||||
|
||||
/*
|
||||
* When ecmaVersion >= 6, CatchClause creates its own scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue