capsule-lint
Advanced tools
Comparing version 0.4.13 to 0.4.14
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
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
1009280
7775
1