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/prefer-const.js
generated
vendored
6
node_modules/eslint/lib/rules/prefer-const.js
generated
vendored
|
|
@ -334,7 +334,7 @@ module.exports = {
|
|||
docs: {
|
||||
description: "Require `const` declarations for variables that are never reassigned after declared",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/prefer-const"
|
||||
url: "https://eslint.org/docs/latest/rules/prefer-const"
|
||||
},
|
||||
|
||||
fixable: "code",
|
||||
|
|
@ -356,7 +356,7 @@ module.exports = {
|
|||
|
||||
create(context) {
|
||||
const options = context.options[0] || {};
|
||||
const sourceCode = context.getSourceCode();
|
||||
const sourceCode = context.sourceCode;
|
||||
const shouldMatchAnyDestructuredVariable = options.destructuring !== "all";
|
||||
const ignoreReadBeforeAssign = options.ignoreReadBeforeAssign === true;
|
||||
const variables = [];
|
||||
|
|
@ -493,7 +493,7 @@ module.exports = {
|
|||
|
||||
VariableDeclaration(node) {
|
||||
if (node.kind === "let" && !isInitOfForStatement(node)) {
|
||||
variables.push(...context.getDeclaredVariables(node));
|
||||
variables.push(...sourceCode.getDeclaredVariables(node));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue