blob: d2347f34e6f26d83f312c60a2accad0dc8f2398d (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
/// <reference types="node" />
export interface IRunnerOptions {
/**
* Path to a configuration file.
*/
config?: string;
/**
* Exclude globs from path expansion.
*/
exclude?: string | string[];
/**
* File paths to lint.
*/
files?: string[];
/**
* Whether to return status code 0 even if there are lint errors.
*/
force?: boolean;
/**
* Whether to fixes linting errors for select rules. This may overwrite linted files.
*/
fix?: boolean;
/**
* Output format.
*/
format?: string;
/**
* Formatters directory path.
*/
formattersDirectory?: string;
/**
* Whether to generate a tslint.json config file in the current working directory.
*/
init?: boolean;
/**
* Output file path.
*/
out?: string;
/**
* Whether to output absolute paths
*/
outputAbsolutePaths?: boolean;
/**
* tsconfig.json file.
*/
project?: string;
/**
* Rules directory paths.
*/
rulesDirectory?: string | string[];
/**
* That TSLint produces the correct output for the specified directory.
*/
test?: string;
/**
* Whether to enable type checking when linting a project.
*/
typeCheck?: boolean;
/**
* Whether to show the current TSLint version.
*/
version?: boolean;
}
export declare class Runner {
private options;
private outputStream;
private static trimSingleQuotes(str);
constructor(options: IRunnerOptions, outputStream: NodeJS.WritableStream);
run(onComplete: (status: number) => void): void;
private processFiles(onComplete, files, program?);
}
|