1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | import * as ts from "typescript";
|
18 | import { findConfiguration, findConfigurationPath, getRulesDirectories, IConfigurationFile, loadConfigurationFromPath } from "./configuration";
|
19 | import { ILinterOptions, LintResult } from "./index";
|
20 | import { RuleFailure } from "./language/rule/rule";
|
21 |
|
22 |
|
23 |
|
24 | export declare class Linter {
|
25 | private readonly options;
|
26 | private program?;
|
27 | static VERSION: string;
|
28 | static findConfiguration: typeof findConfiguration;
|
29 | static findConfigurationPath: typeof findConfigurationPath;
|
30 | static getRulesDirectories: typeof getRulesDirectories;
|
31 | static loadConfigurationFromPath: typeof loadConfigurationFromPath;
|
32 | private failures;
|
33 | private fixes;
|
34 | |
35 |
|
36 |
|
37 | static createProgram(configFile: string, projectDirectory?: string): ts.Program;
|
38 | |
39 |
|
40 |
|
41 |
|
42 | static getFileNames(program: ts.Program): string[];
|
43 | constructor(options: ILinterOptions, program?: ts.Program | undefined);
|
44 | lint(fileName: string, source: string, configuration?: IConfigurationFile): void;
|
45 | getResult(): LintResult;
|
46 | private getAllFailures;
|
47 | private applyAllFixes;
|
48 | protected applyFixes(sourceFilePath: string, source: string, fixableFailures: RuleFailure[]): string;
|
49 | private updateProgram;
|
50 | private applyRule;
|
51 | private getEnabledRules;
|
52 | private getSourceFile;
|
53 | }
|