🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

capsule-lint

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capsule-lint - npm Package Compare versions

Comparing version

to
0.4.14

6

dist/index.d.ts
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