fis3-lint-htmlhint
v3.1.0
Published
a html linter plugin of fis3 based on htmlhint.
Downloads
23
Maintainers
Readme
fis3-lint-htmlhint
a html linter plugin of fis3 based on htmlhint.
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
fis3: http://fis.baidu.com/
htmlhint: http://htmlhint.com/
license
MIT © fisker Cheung