1 | import * as ts from 'typescript';
|
2 | import { RuleFailure } from 'tslint';
|
3 | import { CancellationToken } from './CancellationToken';
|
4 | import { NormalizedMessage } from './NormalizedMessage';
|
5 | import { ResolveTypeReferenceDirective, ResolveModuleName } from './resolution';
|
6 | import { createEslinter } from './createEslinter';
|
7 | export interface IncrementalCheckerInterface {
|
8 | nextIteration(): void;
|
9 | getDiagnostics(cancellationToken: CancellationToken): Promise<NormalizedMessage[]>;
|
10 | hasLinter(): boolean;
|
11 | getLints(cancellationToken: CancellationToken): NormalizedMessage[];
|
12 | hasEsLinter(): boolean;
|
13 | getEsLints(cancellationToken: CancellationToken): NormalizedMessage[];
|
14 | }
|
15 | export interface ApiIncrementalCheckerParams {
|
16 | typescript: typeof ts;
|
17 | context: string;
|
18 | programConfigFile: string;
|
19 | compilerOptions: ts.CompilerOptions;
|
20 | createNormalizedMessageFromDiagnostic: (diagnostic: ts.Diagnostic) => NormalizedMessage;
|
21 | linterConfigFile: string | boolean;
|
22 | linterAutoFix: boolean;
|
23 | createNormalizedMessageFromRuleFailure: (ruleFailure: RuleFailure) => NormalizedMessage;
|
24 | eslinter: ReturnType<typeof createEslinter> | undefined;
|
25 | checkSyntacticErrors: boolean;
|
26 | resolveModuleName: ResolveModuleName | undefined;
|
27 | resolveTypeReferenceDirective: ResolveTypeReferenceDirective | undefined;
|
28 | }
|
29 | export interface IncrementalCheckerParams extends ApiIncrementalCheckerParams {
|
30 | watchPaths: string[];
|
31 | workNumber: number;
|
32 | workDivision: number;
|
33 | vue: boolean;
|
34 | }
|