Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
7
node_modules/eslint/lib/rules/no-extend-native.js
generated
vendored
7
node_modules/eslint/lib/rules/no-extend-native.js
generated
vendored
|
|
@ -24,7 +24,7 @@ module.exports = {
|
|||
docs: {
|
||||
description: "Disallow extending native types",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-extend-native"
|
||||
url: "https://eslint.org/docs/latest/rules/no-extend-native"
|
||||
},
|
||||
|
||||
schema: [
|
||||
|
|
@ -51,6 +51,7 @@ module.exports = {
|
|||
create(context) {
|
||||
|
||||
const config = context.options[0] || {};
|
||||
const sourceCode = context.sourceCode;
|
||||
const exceptions = new Set(config.exceptions || []);
|
||||
const modifiedBuiltins = new Set(
|
||||
Object.keys(globals.builtin)
|
||||
|
|
@ -159,8 +160,8 @@ module.exports = {
|
|||
|
||||
return {
|
||||
|
||||
"Program:exit"() {
|
||||
const globalScope = context.getScope();
|
||||
"Program:exit"(node) {
|
||||
const globalScope = sourceCode.getScope(node);
|
||||
|
||||
modifiedBuiltins.forEach(builtin => {
|
||||
const builtinVar = globalScope.set.get(builtin);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue