capsule-lint
Version:
The official Capsule linting package.
14 lines (13 loc) • 599 B
TypeScript
import { Hint, Rule, Ruleset } from 'htmlhint/types';
import defaultConfig from './capsule.config';
import { HeadValidChildrenOptions } from './rules/head-valid-children';
import { ValidPathFormatOptions } from './rules/valid-path-format';
export * from './parser';
export { defaultConfig };
type CapsuleRuleset = Ruleset & {
'html-valid-children'?: HeadValidChildrenOptions;
'valid-path-format'?: ValidPathFormatOptions;
'valid-style-attrs'?: boolean;
};
export type { CapsuleRuleset, Hint, Rule, Ruleset };
export declare function lint(html: string, ruleset?: CapsuleRuleset): Hint[];