UNPKG

htmlhint-plugin-blocked-words

Version:

An [HTMLHint](https://htmlhint.com/) plugin that allows users to block arbitrary phrases in HTML code.

15 lines (14 loc) 409 B
import { Rule } from 'htmlhint/types'; export declare type RuleTest<T> = { description: string; html: string; ruleOptions: T; otherOptions?: Record<string, any>; failures?: string[]; force?: true; }; export declare type CustomRule<T> = Rule & { tests: RuleTest<T>[]; defaultOptions: T; }; export declare function createHtmlHintRule<T>(inputRule: CustomRule<T>): CustomRule<T>;