UNPKG

644 BTypeScriptView Raw
1import { NecessaryDependencies } from '../has-necessary-dependencies';
2import { EventLintCheckCompleted } from '../../telemetry/events/build';
3declare function lint(deps: NecessaryDependencies, baseDir: string, lintDirs: string[], eslintrcFile: string | null, pkgJsonPath: string | null, eslintOptions?: any, reportErrorsOnly?: boolean): Promise<string | null | {
4 output: string | null;
5 isError: boolean;
6 eventInfo: EventLintCheckCompleted;
7}>;
8export declare function runLintCheck(baseDir: string, lintDirs: string[], lintDuringBuild?: boolean, eslintOptions?: any, reportErrorsOnly?: boolean): ReturnType<typeof lint>;
9export {};