fis3-lint-htmlhint

3.1.0 • Public • Published

fis3-lint-htmlhint

a html linter plugin of fis3 based on htmlhint.

styled with prettier npm npm npm

install

npm install --global fis3-lint-htmlhint

usage

// fis-conf.js

// config with .htmlhintrc file (Recommended)
const htmlhintConf = {
  // key `rules` should be falsy
};

fis.match('*.html', {
  lint: fis.plugin('htmlhint', htmlhintConf);
});


// config with inline rules
const htmlhintConf = {
  rules: {
    "tagname-lowercase": true,
    "attr-lowercase": true,
    "attr-value-double-quotes": true,
    "doctype-first": true,
    "tag-pair": true,
    "spec-char-escape": true,
    "id-unique": true,
    "src-not-empty": true,
    "attr-no-duplication": true,
    "title-require": true
  }
};

rules: https://github.com/yaniswang/HTMLHint/wiki/Rules

links

license

MIT © fisker Cheung

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.1.0
    0
    • latest

Version History

Package Sidebar

Install

npm i fis3-lint-htmlhint

Weekly Downloads

43

Version

3.1.0

License

MIT

Unpacked Size

36.4 kB

Total Files

4

Last publish

Collaborators

  • fisker