eslint-plugin-no-barrel-files
Version:
ESLint plugin for reducing barrel-file usage in two ways:
20 lines • 2.84 kB
TypeScript
import { AnalysisCaches, BarrelAnalysis, ManualAliasMapping, Options, ReExportTarget, ResolutionCaches, TsconfigInfo } from './types';
import type typescriptModule from 'typescript';
type TypeScriptModule = typeof typescriptModule;
export declare function createResolutionCaches(sharedTsconfigCache?: Map<string, TsconfigInfo | null>, sharedTsconfigPathCache?: Map<string, string | null>): ResolutionCaches;
export declare function createSharedResolutionCaches(): ResolutionCaches;
export declare function setTypeScriptModuleLoaderForTests(loader: (() => TypeScriptModule | null) | null): void;
export declare function getTypeScriptModule(): TypeScriptModule | null;
export declare function hasTypeScriptModule(): boolean;
export declare function getTsconfigPath(options: Options[0] | undefined, importerFilename: string, cwd?: string, tsconfigPathCache?: Map<string, string | null>): string | null;
export declare function getTsconfigInfo(options: Options[0] | undefined, importerFilename: string, tsconfigCache: Map<string, TsconfigInfo | null>, cwd?: string, tsconfigPathCache?: Map<string, string | null>): TsconfigInfo | null;
export declare function resolveWithManualPaths(options: Options[0] | undefined, importerFilename: string, specifier: string, cwd?: string): string | null;
export declare function getManualAliasMappings(options: Options[0] | undefined): Array<ManualAliasMapping>;
export declare function resolveWithTsconfig(options: Options[0] | undefined, importerFilename: string, specifier: string, tsconfigCache: Map<string, TsconfigInfo | null>, cwd?: string, tsconfigPathCache?: Map<string, string | null>): string | null;
export declare function resolveImport(options: Options[0] | undefined, resolutionCaches: ResolutionCaches, importerFilename: string, specifier: string, cwd?: string): string | null;
export declare function reverseResolveManualAlias(options: Options[0] | undefined, resolvedFilePath: string, cwd?: string): string | null;
export declare function reverseResolveTsconfigAlias(options: Options[0] | undefined, importerFilename: string, resolvedFilePath: string, tsconfigCache: Map<string, TsconfigInfo | null>, cwd?: string, tsconfigPathCache?: Map<string, string | null>): string | null;
export declare function getPreferredSourceSpecifier(options: Options[0] | undefined, importerFilename: string, originalImportSpecifier: string, reExportTarget: ReExportTarget, tsconfigCache: Map<string, TsconfigInfo | null>, cwd?: string, tsconfigPathCache?: Map<string, string | null>): string | null;
export declare function getBarrelAnalysis(options: Options[0] | undefined, barrelFilePath: string, barrelExportCache: Map<string, BarrelAnalysis | null>, resolutionCaches: ResolutionCaches, analysisCaches: AnalysisCaches, cwd?: string): BarrelAnalysis | null;
export {};
//# sourceMappingURL=resolution.d.ts.map