Socket
Socket
Sign inDemoInstall

@typescript-eslint/parser

Package Overview
Dependencies
5
Maintainers
1
Versions
3627
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1-alpha.9 to 1.2.1-alpha.10

1

dist/parser-options.d.ts

@@ -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;

8

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc