mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-09-02 18:04:45 +08:00
feat: updates & github event support
This commit is contained in:
+4
@@ -1,3 +1,7 @@
|
||||
[](https://www.npmjs.com/package/eslint-scope)
|
||||
[](https://www.npmjs.com/package/eslint-scope)
|
||||
[](https://github.com/eslint/eslint-scope/actions)
|
||||
|
||||
# ESLint Scope
|
||||
|
||||
ESLint Scope is the [ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm) scope analyzer used in ESLint. It is a fork of [escope](http://github.com/estools/escope).
|
||||
|
||||
+1
-1
@@ -409,7 +409,7 @@ class Referencer extends esrecurse.Visitor {
|
||||
Program(node) {
|
||||
this.scopeManager.__nestGlobalScope(node);
|
||||
|
||||
if (this.scopeManager.__isNodejsScope()) {
|
||||
if (this.scopeManager.isGlobalReturn()) {
|
||||
|
||||
// Force strictness of GlobalScope to false when using node.js scope.
|
||||
this.currentScope().isStrict = false;
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ class ScopeManager {
|
||||
return this.__options.ignoreEval;
|
||||
}
|
||||
|
||||
__isNodejsScope() {
|
||||
isGlobalReturn() {
|
||||
return this.__options.nodejsScope || this.__options.sourceType === "commonjs";
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -11,11 +11,12 @@
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"version": "7.1.1",
|
||||
"version": "7.2.2",
|
||||
"engines": {
|
||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||
},
|
||||
"repository": "eslint/eslint-scope",
|
||||
"funding": "https://opencollective.com/eslint",
|
||||
"bugs": {
|
||||
"url": "https://github.com/eslint/eslint-scope/issues"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user