@typescript-eslint/parser
Advanced tools
Comparing version 8.2.1-alpha.16 to 8.2.1-alpha.17
export { parse, parseForESLint, ParserOptions } from './parser'; | ||
export { ParserServices, ParserServicesWithTypeInformation, ParserServicesWithoutTypeInformation, clearCaches, createProgram, withoutProjectParserOptions, } from '@typescript-eslint/typescript-estree'; | ||
export { clearCaches, createProgram, ParserServices, ParserServicesWithoutTypeInformation, ParserServicesWithTypeInformation, withoutProjectParserOptions, } from '@typescript-eslint/typescript-estree'; | ||
export declare const version: string; | ||
@@ -4,0 +4,0 @@ export declare const meta: { |
import type { ScopeManager } from '@typescript-eslint/scope-manager'; | ||
import type { TSESTree } from '@typescript-eslint/types'; | ||
import { ParserOptions } from '@typescript-eslint/types'; | ||
import type { AST, ParserServices } from '@typescript-eslint/typescript-estree'; | ||
import type { VisitorKeys } from '@typescript-eslint/visitor-keys'; | ||
import type * as ts from 'typescript'; | ||
import { ParserOptions } from '@typescript-eslint/types'; | ||
interface ESLintProgram extends AST<{ | ||
@@ -17,5 +17,5 @@ comment: true; | ||
ast: ESLintProgram; | ||
scopeManager: ScopeManager; | ||
services: ParserServices; | ||
visitorKeys: VisitorKeys; | ||
scopeManager: ScopeManager; | ||
} | ||
@@ -22,0 +22,0 @@ declare function parse(code: ts.SourceFile | string, options?: ParserOptions): ParseForESLintResult['ast']; |
@@ -34,20 +34,20 @@ "use strict"; | ||
switch (target) { | ||
case typescript_1.ScriptTarget.ES2015: | ||
return ['es6']; | ||
case typescript_1.ScriptTarget.ES2016: | ||
return ['es2016.full']; | ||
case typescript_1.ScriptTarget.ES2017: | ||
return ['es2017.full']; | ||
case typescript_1.ScriptTarget.ES2018: | ||
return ['es2018.full']; | ||
case typescript_1.ScriptTarget.ES2019: | ||
return ['es2019.full']; | ||
case typescript_1.ScriptTarget.ES2020: | ||
return ['es2020.full']; | ||
case typescript_1.ScriptTarget.ES2021: | ||
return ['es2021.full']; | ||
case typescript_1.ScriptTarget.ES2022: | ||
return ['es2022.full']; | ||
case typescript_1.ScriptTarget.ESNext: | ||
return ['esnext.full']; | ||
case typescript_1.ScriptTarget.ES2022: | ||
return ['es2022.full']; | ||
case typescript_1.ScriptTarget.ES2021: | ||
return ['es2021.full']; | ||
case typescript_1.ScriptTarget.ES2020: | ||
return ['es2020.full']; | ||
case typescript_1.ScriptTarget.ES2019: | ||
return ['es2019.full']; | ||
case typescript_1.ScriptTarget.ES2018: | ||
return ['es2018.full']; | ||
case typescript_1.ScriptTarget.ES2017: | ||
return ['es2017.full']; | ||
case typescript_1.ScriptTarget.ES2016: | ||
return ['es2016.full']; | ||
case typescript_1.ScriptTarget.ES2015: | ||
return ['es6']; | ||
default: | ||
@@ -97,4 +97,4 @@ return ['lib']; | ||
globalReturn: parserOptions.ecmaFeatures.globalReturn, | ||
jsxFragmentName: parserOptions.jsxFragmentName, | ||
jsxPragma: parserOptions.jsxPragma, | ||
jsxFragmentName: parserOptions.jsxFragmentName, | ||
lib: parserOptions.lib, | ||
@@ -135,4 +135,4 @@ sourceType: parserOptions.sourceType, | ||
parserOptions.experimentalDecorators === true; | ||
return { ast, services, scopeManager, visitorKeys: visitor_keys_1.visitorKeys }; | ||
return { ast, scopeManager, services, visitorKeys: visitor_keys_1.visitorKeys }; | ||
} | ||
//# sourceMappingURL=parser.js.map |
{ | ||
"name": "@typescript-eslint/parser", | ||
"version": "8.2.1-alpha.16", | ||
"version": "8.2.1-alpha.17", | ||
"description": "An ESLint custom parser which leverages TypeScript ESTree", | ||
@@ -55,6 +55,6 @@ "files": [ | ||
"dependencies": { | ||
"@typescript-eslint/scope-manager": "8.2.1-alpha.16", | ||
"@typescript-eslint/types": "8.2.1-alpha.16", | ||
"@typescript-eslint/typescript-estree": "8.2.1-alpha.16", | ||
"@typescript-eslint/visitor-keys": "8.2.1-alpha.16", | ||
"@typescript-eslint/scope-manager": "8.2.1-alpha.17", | ||
"@typescript-eslint/types": "8.2.1-alpha.17", | ||
"@typescript-eslint/typescript-estree": "8.2.1-alpha.17", | ||
"@typescript-eslint/visitor-keys": "8.2.1-alpha.17", | ||
"debug": "^4.3.4" | ||
@@ -61,0 +61,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
+ Added@typescript-eslint/scope-manager@8.2.1-alpha.17(transitive)
+ Added@typescript-eslint/types@8.2.1-alpha.17(transitive)
+ Added@typescript-eslint/typescript-estree@8.2.1-alpha.17(transitive)
+ Added@typescript-eslint/visitor-keys@8.2.1-alpha.17(transitive)
- Removed@typescript-eslint/scope-manager@8.2.1-alpha.16(transitive)
- Removed@typescript-eslint/types@8.2.1-alpha.16(transitive)
- Removed@typescript-eslint/typescript-estree@8.2.1-alpha.16(transitive)
- Removed@typescript-eslint/visitor-keys@8.2.1-alpha.16(transitive)