Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2023-07-13 09:09:17 +00:00
parent 4fad06f438
commit 40a500c743
4168 changed files with 298222 additions and 374905 deletions

View file

@ -67,7 +67,7 @@ module.exports = {
docs: {
description: "Require rest parameters instead of `arguments`",
recommended: false,
url: "https://eslint.org/docs/rules/prefer-rest-params"
url: "https://eslint.org/docs/latest/rules/prefer-rest-params"
},
schema: [],
@ -79,6 +79,8 @@ module.exports = {
create(context) {
const sourceCode = context.sourceCode;
/**
* Reports a given reference.
* @param {eslint-scope.Reference} reference A reference to report.
@ -94,10 +96,11 @@ module.exports = {
/**
* Reports references of the implicit `arguments` variable if exist.
* @param {ASTNode} node The node representing the function.
* @returns {void}
*/
function checkForArguments() {
const argumentsVar = getVariableOfArguments(context.getScope());
function checkForArguments(node) {
const argumentsVar = getVariableOfArguments(sourceCode.getScope(node));
if (argumentsVar) {
argumentsVar