Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
14
node_modules/eslint/lib/rules/no-eval.js
generated
vendored
14
node_modules/eslint/lib/rules/no-eval.js
generated
vendored
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue