@typescript-eslint/scope-manager
Advanced tools
Comparing version 4.0.2-alpha.1 to 4.0.2-alpha.2
@@ -7,2 +7,3 @@ "use strict"; | ||
const ScopeManager_1 = require("./ScopeManager"); | ||
const lib_1 = require("./lib"); | ||
const DEFAULT_OPTIONS = { | ||
@@ -20,7 +21,5 @@ childVisitorKeys: visitor_keys_1.visitorKeys, | ||
} | ||
if (version > 2000) { | ||
return `es${version}`; | ||
} | ||
const year = 2015 + (version - 6); | ||
return `es${year}`; | ||
const year = version > 2000 ? version : 2015 + (version - 6); | ||
const lib = `es${year}`; | ||
return lib in lib_1.lib ? lib : year > 2020 ? 'esnext' : 'es5'; | ||
} | ||
@@ -27,0 +26,0 @@ /** |
{ | ||
"name": "@typescript-eslint/scope-manager", | ||
"version": "4.0.2-alpha.1+bfe255fd", | ||
"version": "4.0.2-alpha.2+20a7dcc8", | ||
"description": "TypeScript scope analyser for ESLint", | ||
@@ -42,8 +42,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@typescript-eslint/types": "4.0.2-alpha.1+bfe255fd", | ||
"@typescript-eslint/visitor-keys": "4.0.2-alpha.1+bfe255fd" | ||
"@typescript-eslint/types": "4.0.2-alpha.2+20a7dcc8", | ||
"@typescript-eslint/visitor-keys": "4.0.2-alpha.2+20a7dcc8" | ||
}, | ||
"devDependencies": { | ||
"@types/glob": "*", | ||
"@typescript-eslint/typescript-estree": "4.0.2-alpha.1+bfe255fd", | ||
"@typescript-eslint/typescript-estree": "4.0.2-alpha.2+20a7dcc8", | ||
"glob": "*", | ||
@@ -68,3 +68,3 @@ "jest-specific-snapshot": "*", | ||
}, | ||
"gitHead": "bfe255fde0cb5fe5e32c02eb5ba35d27fb23d9ea" | ||
"gitHead": "20a7dcc808a39cd447d6e52fc5a1e1373d7122e9" | ||
} |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1032016
18693