@typescript-eslint/typescript-estree
Advanced tools
Comparing version 1.0.1-alpha.6 to 1.0.1-alpha.8
import ts from 'typescript'; | ||
import { Extra } from './temp-types-based-on-js-source'; | ||
declare const _default: (ast: ts.SourceFile, extra: Extra, shouldProvideParserServices: boolean) => { | ||
export default function astConverter(ast: ts.SourceFile, extra: Extra, shouldProvideParserServices: boolean): { | ||
estree: any; | ||
@@ -10,2 +10,1 @@ astMaps: { | ||
}; | ||
export default _default; |
@@ -20,3 +20,3 @@ "use strict"; | ||
const node_utils_1 = require("./node-utils"); | ||
exports.default = (ast, extra, shouldProvideParserServices) => { | ||
function astConverter(ast, extra, shouldProvideParserServices) { | ||
/** | ||
@@ -60,2 +60,3 @@ * The TypeScript compiler produced fundamental parse errors when parsing the | ||
return { estree, astMaps }; | ||
}; | ||
} | ||
exports.default = astConverter; |
@@ -147,5 +147,4 @@ "use strict"; | ||
function generateAST(code, options = {}, shouldGenerateServices = false) { | ||
const toString = String; | ||
if (typeof code !== 'string' && !(code instanceof String)) { | ||
code = toString(code); | ||
code = String(code); | ||
} | ||
@@ -152,0 +151,0 @@ resetExtra(); |
@@ -45,2 +45,3 @@ "use strict"; | ||
switch (diagnostic.code) { | ||
case 1013: // ts 3.2 "A rest parameter or binding pattern may not have a trailing comma." | ||
case 1014: // ts 3.2 "A rest parameter must be last in a parameter list." | ||
@@ -47,0 +48,0 @@ case 1044: // ts 3.2 "'{0}' modifier cannot appear on a module or namespace element." |
{ | ||
"name": "@typescript-eslint/typescript-estree", | ||
"version": "1.0.1-alpha.6+e0f4093", | ||
"version": "1.0.1-alpha.8+819b640", | ||
"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.0.1-alpha.6+e0f4093", | ||
"@typescript-eslint/shared-fixtures": "1.0.1-alpha.8+819b640", | ||
"typescript": "~3.2.1" | ||
}, | ||
"gitHead": "e0f409390cbedc57aa1ed38ce8118979cd8db35b" | ||
"gitHead": "819b640559bb41d43467dd473ee15eaf227247ba" | ||
} |
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
219820