stc-htmllint
v1.0.0
Published
Htmllint for stc
Downloads
4
Readme
stc-htmllint
Htmllint for stc
Install
npm install stc-htmllint
How to use
// stc.config.js
var htmllint = require('stc-htmllint');
stc.lint({
htmllint: {plugin: htmllint, include: /\.html$/, options: {}}
})
Default Options
{
'attr-bans': [
'align',
'background',
'bgcolor',
'border',
'frameborder',
'longdesc',
'marginwidth',
'marginheight',
'scrolling',
'style',
'width'
],
'indent-style': 'nonmixed',
'indent-width': 4,
'text-escape-spec-char': true,
'tag-self-close': false,
'tag-bans': ['style', 'b', 'i'],
'tag-name-lowercase': true,
'doctype-first': false,
'doctype-html5': false,
'attr-name-style': 'lowercase',
'attr-name-ignore-regex': false,
'attr-no-dup': true,
'attr-no-unsafe-chars': true,
'attr-quote-style': 'double',
'attr-req-value': true,
'id-no-dup': true,
'id-class-no-ad': true,
'id-class-style': 'underscore',
'class-style': false,
'id-class-ignore-regex': false,
'img-req-alt': true,
'img-req-src': true,
'href-style': false,
'csslint': false,
'label-req-for': true,
'line-end-style': 'lf',
'line-max-len': false,
'line-max-len-ignore-regex': false,
'head-req-title': true,
'title-no-dup': true,
'title-max-len': 60,
'html-req-lang': false,
'lang-style': 'case'
}
You can use options
to change them.