HTML linter for legacy/modern HTML, Web Components, SVG, MathML, AMP HTML and more.
Install
$ yarn add markuplint
Usage
CLI
$ markuplint verifyee.html
$ markuplint --help
Usage
$ markuplint <input>
Options
--ruleset, -r Ruleset file path
Examples
$ markuplint verifyee.html --ruleset path/to/.markuplintrc
$ cat verifyee.html | markuplint
API
import * as markuplint from 'markuplint';
const reports = await markuplint.verify(html, ruleset, rules);
const { html, reports } = await markuplint.verifyFile(htmlPath, ruleset, rules);
Rules
Rule Documentation (日本語)
Thanks
This linter is inspired by