Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
5
node_modules/eslint/lib/rules/no-param-reassign.js
generated
vendored
5
node_modules/eslint/lib/rules/no-param-reassign.js
generated
vendored
|
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
docs: {
|
||||
description: "Disallow reassigning `function` parameters",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-param-reassign"
|
||||
url: "https://eslint.org/docs/latest/rules/no-param-reassign"
|
||||
},
|
||||
|
||||
schema: [
|
||||
|
|
@ -70,6 +70,7 @@ module.exports = {
|
|||
const props = context.options[0] && context.options[0].props;
|
||||
const ignoredPropertyAssignmentsFor = context.options[0] && context.options[0].ignorePropertyModificationsFor || [];
|
||||
const ignoredPropertyAssignmentsForRegex = context.options[0] && context.options[0].ignorePropertyModificationsForRegex || [];
|
||||
const sourceCode = context.sourceCode;
|
||||
|
||||
/**
|
||||
* Checks whether or not the reference modifies properties of its variable.
|
||||
|
|
@ -214,7 +215,7 @@ module.exports = {
|
|||
* @returns {void}
|
||||
*/
|
||||
function checkForFunction(node) {
|
||||
context.getDeclaredVariables(node).forEach(checkVariable);
|
||||
sourceCode.getDeclaredVariables(node).forEach(checkVariable);
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue