add:
- change cli parameter:
--plugin
to--rulesdir
- add formatter directory support
- add formatters: compact, markdown
- add cli parameter:
--nocolor
, disable color in cli
fix:
- fix: report error evidence if tag attrs include
\r\n
add:
- attr-unsafe-chars(rule): show unsafe code in message
- support glob pattern for cli
- support format as custom: json, junit, checkstyle
- support plugin:
htmlhint --plugin ./plugins/
- add rule: inline-style-disabled
- add rule: inline-script-disabled
fix:
- title-require(rule): report error when
<html><title>test</title><head></head><body></body></html>
- title-require(rule): report error when
<html><head><title></title></head><body></body></html>
add:
- add config loaded message to cli log
- support async for cli
fix:
- close issue: #79, fix exit with 0 when hint errors
- fix end event col
- attr-unsafe-chars(rule): exclude
\r\n
add:
- Search
.htmlhintrc
in parent directory - Allow comments in json
- Support hint any file without
.html
or.htm
extension, just like:htmlhint test.xhtml
- Support json raw format in cli
- tag-pair(rule): Show the line of the start tag
- space-tab-mixed-disabled(rule): Support space and tab mode, for check only space or tab
- Make cli logs more clear to people
- add rule: title-require,
<title>
must be present in<head>
tag.
fix:
- Fix issue: #77
<link rel=icon><link rel=icon>
- Made the descriptions and error messages of rules more clear to people
- head-script-disabled(fule): No head not result error
fix:
- fix 'No such file' issue on mac
- head-script-disabled: not match template script
add:
- add rule: attr-no-duplication
- add rule: space-tab-mixed-disabled
- add rule: id-class-ad-disabled
- add rule: href-abs-or-rel
- add rule: attr-unsafe-chars
- add default rule: attr-no-duplication
- add inline ruleset support
- add test spec: Set false to rule
- add point: load default ruleset when use empty ruleset
- add rule: src-not-empty
fix:
- fix attr-value-double-quotes rule:
<img src=''>
should result error
add:
- add ruleid to csslint message
fix:
- fix csslint rule: del undefined of raw
- fix parser for:
<div class="foo""><a><span">
add:
- add rule: csslint
- add rule: jshint
- add rule: id-unique
- add cli
fix:
-
compatible with:
<div class="foo" <div class"foo"> <div class=foo"> <div class="foo>
add:
- add rule: attr-lowercase
- add rule: attr-value-double-quotes
- add rule: attr-value-not-empty
- add rule: doctype-first
- add rule: doctype-html5
- add rule: head-script-disabled
- add rule: id-class-value
- add rule: img-alt-require
- add rule: spec-char-escape
- add rule: style-disabled
- add rule: tagname-lowercase
- add rule: tag-pair
- add rule: tag-self-close