eslint-scope
Advanced tools
Comparing version 7.0.0 to 7.1.0
@@ -69,3 +69,3 @@ /* | ||
impliedStrict: false, | ||
sourceType: "script", // one of ['script', 'module'] | ||
sourceType: "script", // one of ['script', 'module', 'commonjs'] | ||
ecmaVersion: 5, | ||
@@ -126,3 +126,3 @@ childVisitorKeys: null, | ||
* (if ecmaVersion >= 5). | ||
* @param {string} [providedOptions.sourceType='script'] the source type of the script. one of 'script' and 'module' | ||
* @param {string} [providedOptions.sourceType='script'] the source type of the script. one of 'script', 'module', and 'commonjs' | ||
* @param {number} [providedOptions.ecmaVersion=5] which ECMAScript version is considered | ||
@@ -129,0 +129,0 @@ * @param {Object} [providedOptions.childVisitorKeys=null] Additional known visitor keys. See [esrecurse](https://github.com/estools/esrecurse)'s the `childVisitorKeys` option. |
@@ -69,3 +69,3 @@ /* | ||
__isNodejsScope() { | ||
return this.__options.nodejsScope; | ||
return this.__options.nodejsScope || this.__options.sourceType === "commonjs"; | ||
} | ||
@@ -72,0 +72,0 @@ |
@@ -1,3 +0,3 @@ | ||
const version = "7.0.0"; | ||
const version = "7.1.0"; | ||
export default version; |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"engines": { | ||
@@ -17,0 +17,0 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145800