node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

fis3-lint-htmlhint

fis3-lint-htmlhint

a html linter plugin of fis3 based on htmlhint.

styled with prettier npm npm npm

install

$ npm i -g fis3-lint-htmlhint

usage

// fis-conf.js

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

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


// config with inline rules
var 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

fis3 http://fis.baidu.com/

htmlhint http://htmlhint.com/

license

MIT © fisker Cheung