UNPKG

antler

Version:
13 lines (12 loc) 438 B
import { Level, Node, RuleConfig, RuleOptions } from './types'; export declare abstract class Rule { protected options?: RuleOptions; protected level: Level; constructor(config: Level | RuleConfig); abstract run(node: Node): void; protected abstract getName(): string; protected report(error: Error | string): void; protected error(error: Error | string): void; private setLevel; private setOptions; }