@adguard/aglint
Version:
Universal adblock filter list linter.
12 lines (11 loc) • 519 B
TypeScript
import { type LinterConfig } from '../common';
/**
* Reads and parses supported configuration files.
*
* @param filePath - The name of the configuration file to be read and parsed.
* @returns The parsed config object.
* @throws If the file not found or the file extension is not supported.
* @throws If the file contents are not valid JSON or YAML.
* @throws If the file contents are not valid according to the config schema.
*/
export declare function parseConfigFile(filePath: string): Promise<LinterConfig>;