lint.d.ts
1.29 KB
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
import * as configuration from "./configuration";
import * as formatters from "./formatters";
import { RuleFailure } from "./language/rule/rule";
import * as rules from "./rules";
import * as test from "./test";
import * as linter from "./tslint";
import * as utils from "./utils";
export * from "./language/rule/rule";
export * from "./enableDisableRules";
export * from "./formatterLoader";
export * from "./ruleLoader";
export * from "./language/utils";
export * from "./language/languageServiceHost";
export * from "./language/walker";
export * from "./language/formatter/formatter";
export declare var Configuration: typeof configuration;
export declare var Formatters: typeof formatters;
export declare var Linter: typeof linter;
export declare var Rules: typeof rules;
export declare var Test: typeof test;
export declare var Utils: typeof utils;
export interface LintResult {
failureCount: number;
failures: RuleFailure[];
format: string | Function;
output: string;
}
export interface ILinterOptionsRaw {
configuration?: any;
formatter?: string | Function;
formattersDirectory?: string;
rulesDirectory?: string | string[];
}
export interface ILinterOptions extends ILinterOptionsRaw {
configuration: any;
formatter: string | Function;
rulesDirectory: string | string[];
}