capsule-lint
Advanced tools
Comparing version
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 type { Hint, Rule, Ruleset }; | ||
export type CapsuleRuleset = Ruleset & { | ||
export { defaultConfig }; | ||
type CapsuleRuleset = Ruleset & { | ||
'html-valid-children'?: HeadValidChildrenOptions; | ||
'valid-path-format'?: ValidPathFormatOptions; | ||
}; | ||
export type { CapsuleRuleset, Hint, Rule, Ruleset }; | ||
export declare function lint(html: string, ruleset?: CapsuleRuleset): Hint[]; |
{ | ||
"name": "capsule-lint", | ||
"version": "0.4.13", | ||
"version": "0.4.14", | ||
"description": "The official Capsule linting package.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -14,3 +14,13 @@ import { HTMLHint } from 'htmlhint'; | ||
export { | ||
defaultConfig | ||
}; | ||
type CapsuleRuleset = Ruleset & { | ||
'html-valid-children'?: HeadValidChildrenOptions, | ||
'valid-path-format'?: ValidPathFormatOptions | ||
} | ||
export type { | ||
CapsuleRuleset, | ||
Hint, | ||
@@ -21,7 +31,2 @@ Rule, | ||
export type CapsuleRuleset = Ruleset & { | ||
'html-valid-children'?: HeadValidChildrenOptions, | ||
'valid-path-format'?: ValidPathFormatOptions | ||
} | ||
export function lint(html: string, ruleset?: CapsuleRuleset): Hint[] { | ||
@@ -28,0 +33,0 @@ return HTMLHint.verify(html, ruleset ?? defaultConfig).map(error => { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1009280
0.03%7775
0.09%