htmlhint
Version:
The Static Code Analysis Tool for your HTML
21 lines • 663 B
TypeScript
import HTMLParser from './htmlparser';
import Reporter from './reporter';
import * as HTMLRules from './rules';
import { Hint, Rule, Ruleset } from './types';
export interface FormatOptions {
colors?: boolean;
indent?: number;
}
declare class HTMLHintCore {
rules: {
[id: string]: Rule;
};
readonly defaultRuleset: Ruleset;
addRule(rule: Rule): void;
verify(html: string, ruleset?: Ruleset): Hint[];
private parseDisableComments;
format(arrMessages: Hint[], options?: FormatOptions): string[];
}
export declare const HTMLHint: HTMLHintCore;
export { HTMLRules, Reporter, HTMLParser };
//# sourceMappingURL=core.d.ts.map