runLintCheck.d.ts 940 B

123456789101112131415161718192021222324
  1. import { EventLintCheckCompleted } from '../../telemetry/events/build';
  2. declare function lint(baseDir: string, lintDirs: string[], eslintrcFile: string | null, pkgJsonPath: string | null, hasAppDir: boolean, { lintDuringBuild, eslintOptions, reportErrorsOnly, maxWarnings, formatter, outputFile, }: {
  3. lintDuringBuild: boolean;
  4. eslintOptions: any;
  5. reportErrorsOnly: boolean;
  6. maxWarnings: number;
  7. formatter: string | null;
  8. outputFile: string | null;
  9. }): Promise<string | null | {
  10. output: string | null;
  11. isError: boolean;
  12. eventInfo: EventLintCheckCompleted;
  13. }>;
  14. export declare function runLintCheck(baseDir: string, lintDirs: string[], opts: {
  15. lintDuringBuild?: boolean;
  16. eslintOptions?: any;
  17. reportErrorsOnly?: boolean;
  18. maxWarnings?: number;
  19. formatter?: string | null;
  20. outputFile?: string | null;
  21. strict?: boolean;
  22. hasAppDir: boolean;
  23. }): ReturnType<typeof lint>;
  24. export {};