configuration.d.ts
1.76 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
39
40
41
export interface IConfigurationFile {
extends?: string | string[];
linterOptions?: {
typeCheck?: boolean;
};
rulesDirectory?: string | string[];
rules?: any;
}
export declare const CONFIG_FILENAME: string;
export declare const DEFAULT_CONFIG: {
"rules": {
"class-name": boolean;
"comment-format": (boolean | string)[];
"indent": (boolean | string)[];
"no-duplicate-variable": boolean;
"no-eval": boolean;
"no-internal-module": boolean;
"no-trailing-whitespace": boolean;
"no-unsafe-finally": boolean;
"no-var-keyword": boolean;
"one-line": (boolean | string)[];
"quotemark": (boolean | string)[];
"semicolon": (boolean | string)[];
"triple-equals": (boolean | string)[];
"typedef-whitespace": (boolean | {
"call-signature": string;
"index-signature": string;
"parameter": string;
"property-declaration": string;
"variable-declaration": string;
})[];
"variable-name": (boolean | string)[];
"whitespace": (boolean | string)[];
};
};
export declare function findConfiguration(configFile: string, inputFilePath: string): IConfigurationFile;
export declare function findConfigurationPath(suppliedConfigFilePath: string, inputFilePath: string): string;
export declare function loadConfigurationFromPath(configFilePath: string): IConfigurationFile;
export declare function extendConfigurationFile(config: IConfigurationFile, baseConfig: IConfigurationFile): IConfigurationFile;
export declare function getRelativePath(directory: string, relativeTo?: string): string;
export declare function getRulesDirectories(directories: string | string[], relativeTo?: string): string[];