@typescript-eslint/typescript-estree
Advanced tools
Comparing version 8.20.1-alpha.0 to 8.20.1-alpha.1
@@ -6,4 +6,3 @@ import type { ParseSettings } from '../parseSettings'; | ||
*/ | ||
declare function createIsolatedProgram(parseSettings: ParseSettings): ASTAndDefiniteProgram; | ||
export { createIsolatedProgram }; | ||
export declare function createIsolatedProgram(parseSettings: ParseSettings): ASTAndDefiniteProgram; | ||
//# sourceMappingURL=createIsolatedProgram.d.ts.map |
import * as ts from 'typescript'; | ||
import type { ParseSettings } from '../parseSettings'; | ||
import type { ASTAndNoProgram } from './shared'; | ||
declare function createSourceFile(parseSettings: ParseSettings): ts.SourceFile; | ||
declare function createNoProgram(parseSettings: ParseSettings): ASTAndNoProgram; | ||
export { createNoProgram, createSourceFile }; | ||
export declare function createSourceFile(parseSettings: ParseSettings): ts.SourceFile; | ||
export declare function createNoProgram(parseSettings: ParseSettings): ASTAndNoProgram; | ||
//# sourceMappingURL=createSourceFile.d.ts.map |
@@ -39,4 +39,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createSourceFile = createSourceFile; | ||
exports.createNoProgram = createNoProgram; | ||
exports.createSourceFile = createSourceFile; | ||
const debug_1 = __importDefault(require("debug")); | ||
@@ -43,0 +43,0 @@ const ts = __importStar(require("typescript")); |
@@ -8,4 +8,3 @@ import type * as ts from 'typescript/lib/tsserverlibrary'; | ||
*/ | ||
declare function getParsedConfigFile(tsserver: typeof ts, configFile: string, projectDirectory?: string): ts.ParsedCommandLine; | ||
export { getParsedConfigFile }; | ||
export declare function getParsedConfigFile(tsserver: typeof ts, configFile: string, projectDirectory?: string): ts.ParsedCommandLine; | ||
//# sourceMappingURL=getParsedConfigFile.d.ts.map |
import * as ts from 'typescript'; | ||
declare function getScriptKind(filePath: string, jsx: boolean): ts.ScriptKind; | ||
declare function getLanguageVariant(scriptKind: ts.ScriptKind): ts.LanguageVariant; | ||
export { getLanguageVariant, getScriptKind }; | ||
export declare function getScriptKind(filePath: string, jsx: boolean): ts.ScriptKind; | ||
export declare function getLanguageVariant(scriptKind: ts.ScriptKind): ts.LanguageVariant; | ||
//# sourceMappingURL=getScriptKind.d.ts.map |
@@ -39,4 +39,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getScriptKind = getScriptKind; | ||
exports.getLanguageVariant = getLanguageVariant; | ||
exports.getScriptKind = getScriptKind; | ||
const node_path_1 = __importDefault(require("node:path")); | ||
@@ -43,0 +43,0 @@ const ts = __importStar(require("typescript")); |
@@ -7,3 +7,3 @@ import * as ts from 'typescript'; | ||
*/ | ||
declare function clearWatchCaches(): void; | ||
export declare function clearWatchCaches(): void; | ||
/** | ||
@@ -14,4 +14,3 @@ * Calculate project environments using options provided by consumer and paths from config | ||
*/ | ||
declare function getWatchProgramsForProjects(parseSettings: ParseSettings): ts.Program[]; | ||
export { clearWatchCaches, getWatchProgramsForProjects }; | ||
export declare function getWatchProgramsForProjects(parseSettings: ParseSettings): ts.Program[]; | ||
//# sourceMappingURL=getWatchProgramsForProjects.d.ts.map |
import type { Program } from 'typescript'; | ||
import * as ts from 'typescript'; | ||
import type { ParseSettings } from '../parseSettings'; | ||
interface ASTAndNoProgram { | ||
export interface ASTAndNoProgram { | ||
ast: ts.SourceFile; | ||
program: null; | ||
} | ||
interface ASTAndDefiniteProgram { | ||
export interface ASTAndDefiniteProgram { | ||
ast: ts.SourceFile; | ||
program: ts.Program; | ||
} | ||
type ASTAndProgram = ASTAndDefiniteProgram | ASTAndNoProgram; | ||
export type ASTAndProgram = ASTAndDefiniteProgram | ASTAndNoProgram; | ||
/** | ||
* Compiler options required to avoid critical functionality issues | ||
*/ | ||
declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions; | ||
declare const DEFAULT_EXTRA_FILE_EXTENSIONS: Set<string>; | ||
declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions; | ||
type CanonicalPath = { | ||
export declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions; | ||
export declare const DEFAULT_EXTRA_FILE_EXTENSIONS: Set<string>; | ||
export declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions; | ||
export type CanonicalPath = { | ||
__brand: unknown; | ||
} & string; | ||
declare function getCanonicalFileName(filePath: string): CanonicalPath; | ||
declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string; | ||
declare function canonicalDirname(p: CanonicalPath): CanonicalPath; | ||
declare function getAstFromProgram(currentProgram: Program, filePath: string): ASTAndDefiniteProgram | undefined; | ||
export declare function getCanonicalFileName(filePath: string): CanonicalPath; | ||
export declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string; | ||
export declare function canonicalDirname(p: CanonicalPath): CanonicalPath; | ||
export declare function getAstFromProgram(currentProgram: Program, filePath: string): ASTAndDefiniteProgram | undefined; | ||
/** | ||
@@ -31,4 +31,3 @@ * Hash content for compare content. | ||
*/ | ||
declare function createHash(content: string): string; | ||
export { type ASTAndDefiniteProgram, type ASTAndNoProgram, type ASTAndProgram, canonicalDirname, type CanonicalPath, CORE_COMPILER_OPTIONS, createDefaultCompilerOptionsFromExtra, createHash, DEFAULT_EXTRA_FILE_EXTENSIONS, ensureAbsolutePath, getAstFromProgram, getCanonicalFileName, }; | ||
export declare function createHash(content: string): string; | ||
//# sourceMappingURL=shared.d.ts.map |
@@ -40,8 +40,8 @@ "use strict"; | ||
exports.DEFAULT_EXTRA_FILE_EXTENSIONS = exports.CORE_COMPILER_OPTIONS = void 0; | ||
exports.canonicalDirname = canonicalDirname; | ||
exports.createDefaultCompilerOptionsFromExtra = createDefaultCompilerOptionsFromExtra; | ||
exports.createHash = createHash; | ||
exports.getCanonicalFileName = getCanonicalFileName; | ||
exports.ensureAbsolutePath = ensureAbsolutePath; | ||
exports.canonicalDirname = canonicalDirname; | ||
exports.getAstFromProgram = getAstFromProgram; | ||
exports.getCanonicalFileName = getCanonicalFileName; | ||
exports.createHash = createHash; | ||
const node_path_1 = __importDefault(require("node:path")); | ||
@@ -52,3 +52,3 @@ const ts = __importStar(require("typescript")); | ||
*/ | ||
const CORE_COMPILER_OPTIONS = { | ||
exports.CORE_COMPILER_OPTIONS = { | ||
noEmit: true, // required to avoid parse from causing emit to occur | ||
@@ -61,3 +61,2 @@ /** | ||
}; | ||
exports.CORE_COMPILER_OPTIONS = CORE_COMPILER_OPTIONS; | ||
/** | ||
@@ -67,3 +66,3 @@ * Default compiler options for program generation | ||
const DEFAULT_COMPILER_OPTIONS = { | ||
...CORE_COMPILER_OPTIONS, | ||
...exports.CORE_COMPILER_OPTIONS, | ||
allowJs: true, | ||
@@ -73,3 +72,3 @@ allowNonTsExtensions: true, | ||
}; | ||
const DEFAULT_EXTRA_FILE_EXTENSIONS = new Set([ | ||
exports.DEFAULT_EXTRA_FILE_EXTENSIONS = new Set([ | ||
ts.Extension.Cjs, | ||
@@ -84,3 +83,2 @@ ts.Extension.Cts, | ||
]); | ||
exports.DEFAULT_EXTRA_FILE_EXTENSIONS = DEFAULT_EXTRA_FILE_EXTENSIONS; | ||
function createDefaultCompilerOptionsFromExtra(parseSettings) { | ||
@@ -87,0 +85,0 @@ if (parseSettings.debugLevel.has('typescript')) { |
import * as ts from 'typescript'; | ||
import type { ParseSettings } from '../parseSettings'; | ||
import type { ASTAndDefiniteProgram } from './shared'; | ||
declare function useProvidedPrograms(programInstances: Iterable<ts.Program>, parseSettings: ParseSettings): ASTAndDefiniteProgram | undefined; | ||
export declare function useProvidedPrograms(programInstances: Iterable<ts.Program>, parseSettings: ParseSettings): ASTAndDefiniteProgram | undefined; | ||
/** | ||
@@ -11,4 +11,3 @@ * Utility offered by parser to help consumers construct their own program instance. | ||
*/ | ||
declare function createProgramFromConfigFile(configFile: string, projectDirectory?: string): ts.Program; | ||
export { createProgramFromConfigFile, useProvidedPrograms }; | ||
export declare function createProgramFromConfigFile(configFile: string, projectDirectory?: string): ts.Program; | ||
//# sourceMappingURL=useProvidedPrograms.d.ts.map |
@@ -39,4 +39,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useProvidedPrograms = useProvidedPrograms; | ||
exports.createProgramFromConfigFile = createProgramFromConfigFile; | ||
exports.useProvidedPrograms = useProvidedPrograms; | ||
const debug_1 = __importDefault(require("debug")); | ||
@@ -43,0 +43,0 @@ const path = __importStar(require("node:path")); |
@@ -8,7 +8,7 @@ import type * as ts from 'typescript'; | ||
} | ||
interface WatchCompilerHostOfConfigFile<T extends ts.BuilderProgram> extends ts.WatchCompilerHostOfConfigFile<T> { | ||
export interface WatchCompilerHostOfConfigFile<T extends ts.BuilderProgram> extends ts.WatchCompilerHostOfConfigFile<T> { | ||
extraFileExtensions?: readonly ts.FileExtensionInfo[]; | ||
onCachedDirectoryStructureHostCreate(host: CachedDirectoryStructureHost): void; | ||
} | ||
export type { WatchCompilerHostOfConfigFile }; | ||
export {}; | ||
//# sourceMappingURL=WatchCompilerHostOfConfigFile.d.ts.map |
import type * as ts from 'typescript'; | ||
import type { ParserServices, TSESTreeOptions } from './parser-options'; | ||
import type { TSESTree } from './ts-estree'; | ||
declare function clearProgramCache(): void; | ||
declare function clearDefaultProjectMatchedFiles(): void; | ||
type AST<T extends TSESTreeOptions> = (T['comment'] extends true ? { | ||
export declare function clearProgramCache(): void; | ||
export declare function clearDefaultProjectMatchedFiles(): void; | ||
export type AST<T extends TSESTreeOptions> = (T['comment'] extends true ? { | ||
comments: TSESTree.Comment[]; | ||
@@ -11,10 +11,9 @@ } : {}) & (T['tokens'] extends true ? { | ||
} : {}) & TSESTree.Program; | ||
interface ParseAndGenerateServicesResult<T extends TSESTreeOptions> { | ||
export interface ParseAndGenerateServicesResult<T extends TSESTreeOptions> { | ||
ast: AST<T>; | ||
services: ParserServices; | ||
} | ||
declare function parse<T extends TSESTreeOptions = TSESTreeOptions>(code: string, options?: T): AST<T>; | ||
declare function clearParseAndGenerateServicesCalls(): void; | ||
declare function parseAndGenerateServices<T extends TSESTreeOptions = TSESTreeOptions>(code: string | ts.SourceFile, tsestreeOptions: T): ParseAndGenerateServicesResult<T>; | ||
export { type AST, clearDefaultProjectMatchedFiles, clearParseAndGenerateServicesCalls, clearProgramCache, parse, parseAndGenerateServices, type ParseAndGenerateServicesResult, }; | ||
export declare function parse<T extends TSESTreeOptions = TSESTreeOptions>(code: string, options?: T): AST<T>; | ||
export declare function clearParseAndGenerateServicesCalls(): void; | ||
export declare function parseAndGenerateServices<T extends TSESTreeOptions = TSESTreeOptions>(code: string | ts.SourceFile, tsestreeOptions: T): ParseAndGenerateServicesResult<T>; | ||
//# sourceMappingURL=parser.d.ts.map |
@@ -6,6 +6,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.clearProgramCache = clearProgramCache; | ||
exports.clearDefaultProjectMatchedFiles = clearDefaultProjectMatchedFiles; | ||
exports.parse = parse; | ||
exports.clearParseAndGenerateServicesCalls = clearParseAndGenerateServicesCalls; | ||
exports.clearProgramCache = clearProgramCache; | ||
exports.parse = parse; | ||
exports.parseAndGenerateServices = parseAndGenerateServices; | ||
@@ -12,0 +12,0 @@ const debug_1 = __importDefault(require("debug")); |
declare const versions: readonly ["4.7", "4.8", "4.9", "5.0", "5.1", "5.2", "5.3", "5.4"]; | ||
type Versions = typeof versions extends ArrayLike<infer U> ? U : never; | ||
declare const typescriptVersionIsAtLeast: Record<Versions, boolean>; | ||
export { typescriptVersionIsAtLeast }; | ||
export declare const typescriptVersionIsAtLeast: Record<Versions, boolean>; | ||
export {}; | ||
//# sourceMappingURL=version-check.d.ts.map |
@@ -54,7 +54,6 @@ "use strict"; | ||
]; | ||
const typescriptVersionIsAtLeast = {}; | ||
exports.typescriptVersionIsAtLeast = typescriptVersionIsAtLeast; | ||
exports.typescriptVersionIsAtLeast = {}; | ||
for (const version of versions) { | ||
typescriptVersionIsAtLeast[version] = semverCheck(version); | ||
exports.typescriptVersionIsAtLeast[version] = semverCheck(version); | ||
} | ||
//# sourceMappingURL=version-check.js.map |
{ | ||
"name": "@typescript-eslint/typescript-estree", | ||
"version": "8.20.1-alpha.0", | ||
"version": "8.20.1-alpha.1", | ||
"description": "A parser that converts TypeScript source code into an ESTree compatible form", | ||
@@ -57,4 +57,4 @@ "files": [ | ||
"dependencies": { | ||
"@typescript-eslint/types": "8.20.1-alpha.0", | ||
"@typescript-eslint/visitor-keys": "8.20.1-alpha.0", | ||
"@typescript-eslint/types": "8.20.1-alpha.1", | ||
"@typescript-eslint/visitor-keys": "8.20.1-alpha.1", | ||
"debug": "^4.3.4", | ||
@@ -61,0 +61,0 @@ "fast-glob": "^3.3.2", |
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
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
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
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
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
592320
7650
+ Added@typescript-eslint/types@8.20.1-alpha.1(transitive)
+ Added@typescript-eslint/visitor-keys@8.20.1-alpha.1(transitive)
- Removed@typescript-eslint/types@8.20.1-alpha.0(transitive)
- Removed@typescript-eslint/visitor-keys@8.20.1-alpha.0(transitive)