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

@ -45,7 +45,7 @@ module.exports = {
docs: {
description: "Disallow the use of `eval()`",
recommended: false,
url: "https://eslint.org/docs/rules/no-eval"
url: "https://eslint.org/docs/latest/rules/no-eval"
},
schema: [
@ -68,11 +68,11 @@ module.exports = {
context.options[0] &&
context.options[0].allowIndirect
);
const sourceCode = context.getSourceCode();
const sourceCode = context.sourceCode;
let funcInfo = null;
/**
* Pushs a `this` scope (non-arrow function, class static block, or class field initializer) information to the stack.
* Pushes a `this` scope (non-arrow function, class static block, or class field initializer) information to the stack.
* Top-level scopes are handled separately.
*
* This is used in order to check whether or not `this` binding is a
@ -84,7 +84,7 @@ module.exports = {
* @returns {void}
*/
function enterThisScope(node) {
const strict = context.getScope().isStrict;
const strict = sourceCode.getScope(node).isStrict;
funcInfo = {
upper: funcInfo,
@ -221,7 +221,7 @@ module.exports = {
},
Program(node) {
const scope = context.getScope(),
const scope = sourceCode.getScope(node),
features = context.parserOptions.ecmaFeatures || {},
strict =
scope.isStrict ||
@ -239,8 +239,8 @@ module.exports = {
};
},
"Program:exit"() {
const globalScope = context.getScope();
"Program:exit"(node) {
const globalScope = sourceCode.getScope(node);
exitThisScope();
reportAccessingEval(globalScope);