Skip to content

Releases: htmlacademy/linthtml-rules-htmlacademy

Himejima Gyōmei

12 Jan 06:57
Compare
Choose a tag to compare

1.0.11

Added htmlacademy/space-between-comments

rules: {
  'htmlacademy/space-between-comments': [true, 'space' | 'no-space]
}
<!-- Comment --> // space
<!--Comment--> // no-space

Gyokko

13 Dec 13:26
Compare
Choose a tag to compare

1.0.10

attr-req-value can now accept regex for ignore

Wakuraba

18 Jul 11:47
Compare
Choose a tag to compare

1.0.9

Fixed req-charset-utf rule

Numa oni

13 Jul 14:47
Compare
Choose a tag to compare

1.0.8

  • Refines the list of interactive elements for aria-label-misuse
    • Adds <label>

Kanzaki Aoi

Hashibira Aoba

11 Jul 15:12
Compare
Choose a tag to compare

1.0.6

Adds new rule htmlacademy/attr-req-value: the attribute cannot be empty, except for the list from ignore

{
  'htmlacademy/attr-req-value': [true, { ignore: ['alt']}]
}
<button class="foo"></button>
<button disabled></button>
<img src="images/image.jpg" width="100" height="100" alt="">

Ubuyashiki Amane

09 Jul 10:47
Compare
Choose a tag to compare

1.0.5

Adds new rule htmlacademy/section-has-heading

 <section>
  <h2>title</h2>
</section>

 <section>
   <div>
      <h2>title</h2>
   </div>
</section>

Tsugikuni Akeno

05 Jul 19:06
Compare
Choose a tag to compare

1.0.4

Fixed name for head-meta-charset

Akaza

05 Jul 18:26
Compare
Choose a tag to compare

1.0.3

  • Rename head-req-charset-utf to req-charset-utf
  • Rename head-req-meta to head-meta-charset
  • Adds a description of the rules
  • Adds htmlacademy/charset-position
<head>
  <meta charset="utf-8">
  <title>Title</title>
</head>
  • Adds form-action-attribute
<form action="https://echo.htmlacademy.ru"></form>
  • Adds img-svg-req-dimensions
<img src="images/image.jpg" width="500" height="300" alt="">

<svg width="200" height="100" viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg">
  <rect x="0" y="0"></rect>
</svg>
  • Adds no-double-br
<p>Lorem ipsum <br>dolor <br>sit amet.</p>
<p>Lorem ipsum <br>dolor sit amet.</p>
<p><br>sit amet.</p>
  • Adds a-target-rel
<a href="https://htmlacademy.pro" target="_blank" rel="noreferrer noopener">Link</a>

Agatsuma Yoshiteru

28 Jun 07:00
Compare
Choose a tag to compare

1.0.2

  • removes attr-value-style;
  • takes the rules to the components.