Releases: htmlacademy/linthtml-config-htmlacademy
Releases · htmlacademy/linthtml-config-htmlacademy
v1.0.15
1.0.15
Added htmlacademy/space-between-comments
rules: {
'htmlacademy/space-between-comments': [true, 'space' | 'no-space]
}
This rule checks for spaces at the beginning and end of the comment block.
Options
string
: "space"|"no-space"
Value space
If a comment has spaces at both the beginning and end of the comment block, it is compliant.
The following patterns are considered problematic:
<!-- Comment-->
<!--Comment -->
<!--Comment-->
The following patterns are not considered problems:
<!-- Comment -->
Value no-space
If a comment has no spaces at both the beginning and end of the comment block, it is compliant.
The following patterns are considered problematic:
<!-- Comment-->
<!--Comment -->
<!-- Comment -->
The following patterns are not considered problems:
<!--Comment-->
v1.0.14
attr-req-value
can now accept regex for ignore
'htmlacademy/attr-req-value': [
true,
{
ignore: ['/^data/']
}
],
v1.0.13
Disabled attr-new-line
rule
v1.0.12
1.0.12
Fixed regex in attr-name-ignore-regex
v1.0.11
1.0.11
Disabled link-min-length-4
This rule triggered for a good example
<a class="logo" href="markup-4-index.html">
<img src="img/logo.svg" width="63" height="52" alt="Логотип сайта гостиницы для котов и кошек Котейка">
</a>
v1.0.10
1.0.10
Fixed req-charset-utf
rule
v1.0.9
1.0.9
- Update linthtml-rules-htmlacademy
- Sorted htmlacademy rules
- Added so many new rules:
htmlacademy/attr-req-value
htmlacademy/aria-label-misuse
htmlacademy/attr-delimiter
htmlacademy/attribute-allowed-values
htmlacademy/ban-url-spaces
htmlacademy/id-no-dup
htmlacademy/input-req-label
htmlacademy/link-req-content
htmlacademy/no-blocking-script
htmlacademy/no-px-size
htmlacademy/req-head-styles
htmlacademy/req-meta-viewport
htmlacademy/req-single-styles
htmlacademy/tag-name-lowercase
htmlacademy/tag-self-close
- Disabled rules:
'class-style'
'spec-char-escape'
tag-self-close
input-req-label
- Enabled rules:
'id-style' : [true, 'dash'],
'input-req-label'
'label-no-enc-textarea-or-select'
'no-surrounding-whitespace'
'link-min-length-4'
'tag-self-close' : [true, 'never']
- Adds:
{
'tag-req-attr': [
true,
{
'input': [
{
name: 'name'
},
],
'select': [
{
name: 'name'
},
],
'textarea': [
{
name: 'name'
},
],
'time': [
{
name: 'datetime'
},
],
'source': [
{
name: 'type'
},
],
'button': [
{
name: 'type'
},
],
'a': [
{
name: 'href'
},
],
}
]
}
v1.0.8
1.0.8
- Update linthtml-rules-htmlacademy
- Adds new rule
htmlacademy/section-has-heading
<section>
<h2>title</h2>
</section>
<section>
<div>
<h2>title</h2>
</div>
</section>
v1.0.7
1.0.7
- Update linthtml-rules-htmlacademy
- Adds htmlacademy rules
- Remove bem for id
- Remove
indent-style
- Remove
line-no-trailing-whitespace
- Remove
link-req-noopener
- Adds
spec-char-escape
- Fixed
head-meta-charset
v1.0.6
1.0.6
- обновили linthtml-rules-htmlacademy 1.0.2
- удалили
htmlacademy/attr-value-style