xo
Version:
JavaScript/TypeScript linter (ESLint wrapper) with great defaults
19 lines (16 loc) • 572 B
TypeScript
import ts from 'typescript';
/**
This function checks if the files are matched by the tsconfig include, exclude, and it returns the unmatched files.
If no tsconfig is found, it will create an in-memory TypeScript Program for type-aware linting.
@param options
@returns The unmatched files and an in-memory TypeScript Program.
*/
export declare function handleTsconfig({ files, cwd, cacheLocation }: {
files: string[];
cwd: string;
cacheLocation?: string;
}): {
existingFiles: string[];
virtualFiles: string[];
program: ts.Program | undefined;
};