UNPKG

1.17 kBTypeScriptView Raw
1import { ConnectorConfig, HintsConfigObject, UserConfig } from '@hint/utils';
2import { CreateAnalyzerOptions } from './types';
3export declare class Configuration {
4 readonly browserslist: string[];
5 readonly connector: ConnectorConfig | undefined;
6 readonly formatters: string[] | undefined;
7 readonly ignoredUrls: Map<string, RegExp[]>;
8 readonly parsers: string[] | undefined;
9 readonly hints: HintsConfigObject;
10 readonly hintsTimeout: number;
11 readonly extends: string[] | undefined;
12 readonly language: string | undefined;
13 private constructor();
14 private static cleanHints;
15 static loadConfigFile(filePath: string): UserConfig | null;
16 static toAbsolutePaths(config: UserConfig | null, configRoot: string): UserConfig | null;
17 static fromConfig(config: UserConfig | null, options?: CreateAnalyzerOptions): Configuration;
18 static validateConnectorConfig(config: Configuration): boolean;
19 static validateHintsConfig(config: Configuration): {
20 invalid: string[];
21 valid: string[];
22 };
23 static getFilenameForDirectory: (directory: string) => string | null;
24}
25//# sourceMappingURL=config.d.ts.map
\No newline at end of file