Skip to content

Releases: htmlacademy/linthtml-config-htmlacademy

v1.0.15

12 Jan 07:06
502606e
Compare
Choose a tag to compare

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

13 Dec 13:33
Compare
Choose a tag to compare

attr-req-value can now accept regex for ignore

'htmlacademy/attr-req-value': [
  true, 
  { 
    ignore: ['/^data/'] 
  }
],

v1.0.13

01 Dec 11:04
Compare
Choose a tag to compare

Disabled attr-new-line rule

v1.0.12

25 Jul 18:43
Compare
Choose a tag to compare

1.0.12

Fixed regex in attr-name-ignore-regex

v1.0.11

18 Jul 12:50
Compare
Choose a tag to compare

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

18 Jul 11:49
e491c96
Compare
Choose a tag to compare

1.0.10

Fixed req-charset-utf rule

v1.0.9

13 Jul 14:56
Compare
Choose a tag to compare

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

09 Jul 10:47
Compare
Choose a tag to compare

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

05 Jul 19:10
Compare
Choose a tag to compare

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

28 Jun 07:04
Compare
Choose a tag to compare

1.0.6

  • обновили linthtml-rules-htmlacademy 1.0.2
  • удалили htmlacademy/attr-value-style