保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 23b60dc1975db38c280d8a123aff97544d1673e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export interface LintMessage {
    ruleId: string | null;
    severity: number;
    message: string;
    line: number;
    column: number;
    endColumn?: number;
    endLine?: number;
    [key: string]: any;
}
export interface LintResult {
    filePath: string;
    messages: LintMessage[];
    [key: string]: any;
}
export interface LintReport {
    results: LintResult[];
    [key: string]: any;
}
export interface CLIEngine {
    version: string;
    executeOnFiles(filesPatterns: string[]): LintReport;
    resolveFileGlobPatterns(filesPatterns: string[]): string[];
    isPathIgnored(filePath: string): boolean;
}
export interface ESLint {
    version: string;
    lintFiles(filesPatterns: string[]): Promise<LintResult[]>;
    isPathIgnored(filePath: string): Promise<boolean>;
}
export declare type ESLintOrCLIEngine = CLIEngine | ESLint;
export interface CLIEngineOptions {
    cwd?: string;
    extensions?: string[];
    fix?: boolean;
    [key: string]: any;
}