@typescript-eslint/typescript-estree
Advanced tools
Comparing version 1.1.1-alpha.2 to 1.1.1-alpha.4
@@ -430,3 +430,8 @@ "use strict"; | ||
if (node.modifiers && node.modifiers[0].kind === SyntaxKind.ExportKeyword) { | ||
const exportKeyword = node.modifiers[0], nextModifier = node.modifiers[1], lastModifier = node.modifiers[node.modifiers.length - 1], declarationIsDefault = nextModifier && nextModifier.kind === SyntaxKind.DefaultKeyword, varToken = findNextToken(lastModifier, ast, ast); | ||
const exportKeyword = node.modifiers[0]; | ||
const nextModifier = node.modifiers[1]; | ||
const declarationIsDefault = nextModifier && nextModifier.kind === SyntaxKind.DefaultKeyword; | ||
const varToken = declarationIsDefault | ||
? findNextToken(nextModifier, ast, ast) | ||
: findNextToken(exportKeyword, ast, ast); | ||
result.range[0] = varToken.getStart(ast); | ||
@@ -433,0 +438,0 @@ result.loc = getLocFor(result.range[0], result.range[1], ast); |
{ | ||
"name": "@typescript-eslint/typescript-estree", | ||
"version": "1.1.1-alpha.2+aa9d1e1", | ||
"version": "1.1.1-alpha.4+9068b62", | ||
"description": "A parser that converts TypeScript source code into an ESTree compatible form", | ||
@@ -44,6 +44,6 @@ "main": "dist/parser.js", | ||
"devDependencies": { | ||
"@typescript-eslint/shared-fixtures": "1.1.1-alpha.2+aa9d1e1", | ||
"@typescript-eslint/shared-fixtures": "1.1.1-alpha.4+9068b62", | ||
"typescript": "~3.2.1" | ||
}, | ||
"gitHead": "aa9d1e175c8dc6fc4b8c4db47648120478a71ba7" | ||
"gitHead": "9068b6276064e6729e1635ab11f7d70a543afa68" | ||
} |
Sorry, the diff of this file is too big to display
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
218142
5277