Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markuplint

Package Overview
Dependencies
Maintainers
1
Versions
293
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markuplint - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

bin/index.js

4

lib/core.d.ts

@@ -1,3 +0,3 @@

import Rule, { VerifiedReport } from './rule';
import Rule, { VerifiedResult } from './rule';
import { Ruleset } from './ruleset';
export declare function verify(html: string, ruleset: Ruleset, rules: Rule[]): VerifiedReport[];
export declare function verify(html: string, ruleset: Ruleset, rules: Rule[]): VerifiedResult[];

@@ -1,4 +0,4 @@

import Rule, { VerifiedReport } from './rule';
import Rule, { VerifiedResult } from './rule';
import { Ruleset } from './ruleset';
export declare function verify(html: string, ruleset: Ruleset, rules: Rule[]): Promise<VerifiedReport[]>;
export declare function verifyFile(filePath: string, ruleset?: Ruleset, rules?: Rule[]): Promise<VerifiedReport[]>;
export declare function verify(html: string, ruleset: Ruleset, rules: Rule[]): Promise<VerifiedResult[]>;
export declare function verifyFile(filePath: string, ruleset?: Ruleset, rules?: Rule[]): Promise<VerifiedResult[]>;
import { Document } from './parser';
import { Ruleset } from './ruleset';
export interface VerifiedReport {
export interface VerifiedResult {
level: RuleLevel;

@@ -22,4 +22,4 @@ message: string;

readonly defaultValue: T;
abstract verify(document: Document, config: RuleConfig<T, O>, ruleset: Ruleset): VerifiedReport[];
abstract verify(document: Document, config: RuleConfig<T, O>, ruleset: Ruleset): VerifiedResult[];
optimizeOption(option: RuleOption<T, O> | boolean): RuleConfig<T, O>;
}
import { Document } from '../parser';
import Rule, { RuleConfig, VerifiedReport } from '../rule';
import Rule, { RuleConfig, VerifiedResult } from '../rule';
import { Ruleset } from '../ruleset';

@@ -11,3 +11,3 @@ /**

name: string;
verify(document: Document, config: RuleConfig, ruleset: Ruleset): VerifiedReport[];
verify(document: Document, config: RuleConfig, ruleset: Ruleset): VerifiedResult[];
}
import { Document } from '../parser';
import Rule, { RuleConfig, VerifiedReport } from '../rule';
import Rule, { RuleConfig, VerifiedResult } from '../rule';
import { Ruleset } from '../ruleset';

@@ -11,3 +11,3 @@ /**

name: string;
verify(document: Document, config: RuleConfig, ruleset: Ruleset): VerifiedReport[];
verify(document: Document, config: RuleConfig, ruleset: Ruleset): VerifiedResult[];
}
import { Document } from '../parser';
import Rule, { RuleConfig, VerifiedReport } from '../rule';
import Rule, { RuleConfig, VerifiedResult } from '../rule';
import { Ruleset } from '../ruleset';

@@ -12,3 +12,3 @@ /**

defaultValue: 'double' | 'single';
verify(document: Document, config: RuleConfig<'double' | 'single'>, ruleset: Ruleset): VerifiedReport[];
verify(document: Document, config: RuleConfig<'double' | 'single'>, ruleset: Ruleset): VerifiedResult[];
}
import { Document } from '../parser';
import Rule, { RuleConfig, VerifiedReport } from '../rule';
import Rule, { RuleConfig, VerifiedResult } from '../rule';
import { Ruleset } from '../ruleset';

@@ -11,3 +11,3 @@ /**

name: string;
verify(document: Document, config: RuleConfig<'tab' | number>, ruleset: Ruleset): VerifiedReport[];
verify(document: Document, config: RuleConfig<'tab' | number>, ruleset: Ruleset): VerifiedResult[];
}
import { Document } from '../parser';
import Rule, { RuleConfig, VerifiedReport } from '../rule';
import Rule, { RuleConfig, VerifiedResult } from '../rule';
import { Ruleset } from '../ruleset';

@@ -11,3 +11,3 @@ /**

name: string;
verify(document: Document, config: RuleConfig, ruleset: Ruleset): VerifiedReport[];
verify(document: Document, config: RuleConfig, ruleset: Ruleset): VerifiedResult[];
}
import { Document } from '../parser';
import Rule, { RuleConfig, VerifiedReport } from '../rule';
import Rule, { RuleConfig, VerifiedResult } from '../rule';
import { Ruleset } from '../ruleset';

@@ -11,3 +11,3 @@ /**

name: string;
verify(document: Document, config: RuleConfig, ruleset: Ruleset): VerifiedReport[];
verify(document: Document, config: RuleConfig, ruleset: Ruleset): VerifiedResult[];
}
{
"name": "markuplint",
"version": "0.1.0",
"description": "Lint for Markup language",
"version": "0.2.0",
"description": "HTML linter for legacy/modern HTML, Web Components, SVG, MathML, AMP HTML and more.",
"main": "lib/index.js",

@@ -20,5 +20,7 @@ "author": "Yusuke Hirao",

"dependencies": {
"meow": "^4.0.0",
"parse5": "^3.0.3"
},
"devDependencies": {
"@types/meow": "^3.6.2",
"ava": "^0.24.0",

@@ -25,0 +27,0 @@ "coveralls": "^3.0.0",

@@ -13,2 +13,21 @@ # markuplint

## Usage
### CLI
```
$ markuplint verifyee.html
```
```
Usage
$ markuplint <input>
Options
--ruleset, -r Ruleset file path
Examples
$ markuplint verifyee.html --ruleset path/to/.markuplintrc
```
## Thanks

@@ -15,0 +34,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc