@typescript-eslint/parser
Advanced tools
Comparing version 2.8.1-alpha.15 to 2.8.1-alpha.17
@@ -271,2 +271,3 @@ "use strict"; | ||
TSDeclareFunction(node) { | ||
var _a, _b; | ||
const scopeManager = this.scopeManager; | ||
@@ -278,4 +279,4 @@ const upperScope = this.currentScope(); | ||
const variable = upperScope.set.get(id.name); | ||
const defs = variable && variable.defs; | ||
const existed = defs && defs.some(d => d.type === 'FunctionName'); | ||
const defs = (_a = variable) === null || _a === void 0 ? void 0 : _a.defs; | ||
const existed = (_b = defs) === null || _b === void 0 ? void 0 : _b.some((d) => d.type === 'FunctionName'); | ||
if (!existed) { | ||
@@ -282,0 +283,0 @@ upperScope.__define(id, new experimental_utils_1.TSESLintScope.Definition('FunctionName', id, node, null, null, null)); |
{ | ||
"name": "@typescript-eslint/parser", | ||
"version": "2.8.1-alpha.15+05ebea5b", | ||
"version": "2.8.1-alpha.17+efd48349", | ||
"description": "An ESLint custom parser which leverages TypeScript ESTree", | ||
@@ -46,4 +46,4 @@ "main": "dist/parser.js", | ||
"@types/eslint-visitor-keys": "^1.0.0", | ||
"@typescript-eslint/experimental-utils": "2.8.1-alpha.15+05ebea5b", | ||
"@typescript-eslint/typescript-estree": "2.8.1-alpha.15+05ebea5b", | ||
"@typescript-eslint/experimental-utils": "2.8.1-alpha.17+efd48349", | ||
"@typescript-eslint/typescript-estree": "2.8.1-alpha.17+efd48349", | ||
"eslint-visitor-keys": "^1.1.0" | ||
@@ -53,6 +53,6 @@ }, | ||
"@types/glob": "^7.1.1", | ||
"@typescript-eslint/shared-fixtures": "2.8.1-alpha.15+05ebea5b", | ||
"@typescript-eslint/shared-fixtures": "2.8.1-alpha.17+efd48349", | ||
"glob": "*" | ||
}, | ||
"gitHead": "05ebea5b3c1b228aa1620d4a0a6a058c6e1b0d20" | ||
"gitHead": "efd483490890d5f53d3bbda80e373e9942941789" | ||
} |
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
77931
845