@typescript-eslint/parser
Advanced tools
Comparing version 1.2.1-alpha.9 to 1.2.1-alpha.10
@@ -19,2 +19,3 @@ export interface ParserOptions { | ||
extraFileExtensions?: string[]; | ||
warnOnUnsupportedTypeScriptVersion?: boolean; | ||
} |
@@ -49,2 +49,10 @@ "use strict"; | ||
} | ||
/** | ||
* Allow the user to suppress the warning from typescript-estree if they are using an unsupported | ||
* version of TypeScript | ||
*/ | ||
const warnOnUnsupportedTypeScriptVersion = validateBoolean(options.warnOnUnsupportedTypeScriptVersion, true); | ||
if (!warnOnUnsupportedTypeScriptVersion) { | ||
parserOptions.loggerFn = false; | ||
} | ||
const { ast, services } = typescript_estree_1.parseAndGenerateServices(code, parserOptions); | ||
@@ -51,0 +59,0 @@ ast.sourceType = options.sourceType; |
{ | ||
"name": "@typescript-eslint/parser", | ||
"version": "1.2.1-alpha.9+e37a1ed", | ||
"version": "1.2.1-alpha.10+f513a14", | ||
"description": "An ESLint custom parser which leverages TypeScript ESTree", | ||
@@ -39,3 +39,3 @@ "main": "dist/parser.js", | ||
"dependencies": { | ||
"@typescript-eslint/typescript-estree": "1.2.1-alpha.9+e37a1ed", | ||
"@typescript-eslint/typescript-estree": "1.2.1-alpha.10+f513a14", | ||
"eslint-scope": "^4.0.0", | ||
@@ -48,5 +48,5 @@ "eslint-visitor-keys": "^1.0.0" | ||
"@types/estree": "^0.0.39", | ||
"@typescript-eslint/shared-fixtures": "1.2.1-alpha.9+e37a1ed" | ||
"@typescript-eslint/shared-fixtures": "1.2.1-alpha.10+f513a14" | ||
}, | ||
"gitHead": "e37a1edb66160e64a3a5b15db8c294905ccc6d02" | ||
"gitHead": "f513a143f549f8ccc8ec4851f245364c4542af73" | ||
} |
@@ -57,2 +57,4 @@ <h1 align="center">TypeScript ESLint Parser</h1> | ||
- **`warnOnUnsupportedTypeScriptVersion`** - default `true`. This option allows you to toggle the warning that the parser will give you if you use a version of TypeScript which is not explicitly supported | ||
### .eslintrc.json | ||
@@ -59,0 +61,0 @@ |
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
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
43168
946
89