Skip to content

Commit cf955ef

Browse files
authored
Release v160 (#1662)
* Release v160 * update config
1 parent 3ae0e88 commit cf955ef

File tree

8 files changed

+19
-14
lines changed

8 files changed

+19
-14
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "htmlhint",
3-
"version": "1.5.1",
3+
"version": "1.6.0",
44
"description": "The Static Code Analysis Tool for your HTML",
55
"keywords": [
66
"html",

src/core/rules/tag-no-obsolete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const OBSOLETE_TAGS = [
3434

3535
export default {
3636
id: 'tag-no-obsolete',
37-
description: 'Disallows the use of obsolete HTML5 tags.',
37+
description: 'Disallows the use of obsolete HTML tags.',
3838
init(parser, reporter, _options) {
3939
parser.addListener('tagstart,tagend', (event) => {
4040
const tagName = event.tagName.toLowerCase()

website/.htmlhintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"attr-sorted": false,
77
"attr-unsafe-chars": false,
88
"attr-value-double-quotes": true,
9+
"attr-value-no-duplication": true,
910
"attr-value-not-empty": false,
1011
"attr-value-single-quotes": false,
1112
"attr-whitespace": false,
@@ -32,6 +33,7 @@
3233
"spec-char-escape": false,
3334
"src-not-empty": true,
3435
"style-disabled": false,
36+
"tag-no-obsolete": true,
3537
"tag-pair": false,
3638
"tag-self-close": false,
3739
"tagname-lowercase": true,

website/src/content/docs/changelog.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ description: The release notes for HTMLHint, see what's changed with each new ve
55

66
import { Badge } from '@astrojs/starlight/components'
77

8+
## 1.6.0 _(2025-06-17)_
9+
10+
- <Badge text="Feat" size="small" /> New rule: [`attr-value-no-duplication`](/rules/attr-value-no-duplication/)
11+
[#1650](https://github.com/htmlhint/HTMLHint/issues/1650)
12+
- <Badge text="Feat" size="small" /> New rule: [`tag-no-obsolete`](/rules/tag-no-obsolete/)
13+
[#1660](https://github.com/htmlhint/HTMLHint/issues/1660)
14+
- <Badge text="Feat" size="small" /> Improved SARIF formatter to output help text (useful for [GitHub Code Scanning](/usage/github-code-scanning/))
15+
816
## 1.5.1 _(2025-06-07)_
917

1018
- <Badge text="Feat" size="small" /> Update Node SARIF Builder
@@ -14,7 +22,7 @@ import { Badge } from '@astrojs/starlight/components'
1422

1523
## 1.5.0 _(2025-06-06)_
1624

17-
- <Badge text="Feat" size="small" /> Add `htmlhint --init` command to create a .htmlhintrc file
25+
- <Badge text="Feat" size="small" /> Add `htmlhint --init` command to create a `.htmlhintrc` file
1826
[#1630](https://github.com/htmlhint/HTMLHint/pull/1630)
1927
- <Badge text="Feat" size="small" /> Add SARIF formatter
2028
[#1627](https://github.com/htmlhint/HTMLHint/issues/1627)

website/src/content/docs/rules/attr-value-no-duplication.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
id: attr-value-no-duplication
33
title: attr-value-no-duplication
44
description: Prevents duplicate values within the same attribute to ensure clean and efficient markup.
5-
pagefind: false
65
sidebar:
76
badge: New
8-
hidden: true
97
---
108

119
import { Badge } from '@astrojs/starlight/components';

website/src/content/docs/rules/index.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ description: A complete list of all the rules for HTMLHint
2525
- [`attr-sorted`](attr-sorted/): Attributes should be sorted in order.
2626
- [`attr-unsafe-chars`](attr-unsafe-chars/): Attribute values cannot contain unsafe chars.
2727
- [`attr-value-double-quotes`](attr-value-double-quotes/): Attribute values must be in double quotes.
28+
- [`attr-value-no-duplication`](attr-value-no-duplication/): Attribute values should not contain duplicates.
2829
- [`attr-value-not-empty`](attr-value-not-empty/): All attributes must have values.
2930
- [`attr-value-single-quotes`](attr-value-single-quotes/): Attribute values must be in single quotes.
3031
- [`attr-whitespace`](attr-whitespace/): No leading or trailing spaces in attribute values.
3132
- [`button-type-require`](button-type-require/): The type attribute of a button element must be present with a valid value: "button", "submit", or "reset".
3233
- [`input-requires-label`](input-requires-label/): All [ input ] tags must have a corresponding [ label ] tag.
3334

34-
{/* [`attr-value-no-duplication`](attr-value-no-duplication/): Attribute values should not contain duplicates. */}
35-
3635
## Tags
3736

3837
- [`empty-tag-not-self-closed`](empty-tag-not-self-closed/): The empty tag should not be closed by self.
@@ -41,7 +40,7 @@ description: A complete list of all the rules for HTMLHint
4140
- [`href-abs-or-rel`](href-abs-or-rel/): An href attribute must be either absolute or relative.
4241
- [`main-require`](main-require/): A document must have at least one `<main>` element in the `<body>` tag.
4342
- [`src-not-empty`](src-not-empty/): The src attribute of an img(script,link) must have a value.
44-
{/* - [`tag-no-obsolete`](tag-no-obsolete/): Disallows the use of obsolete HTML5 tags. */}
43+
- [`tag-no-obsolete`](tag-no-obsolete/): Disallows the use of obsolete HTML tags.
4544
- [`tag-pair`](tag-pair/): Tag must be paired.
4645
- [`tag-self-close`](tag-self-close/): Empty tags must be self closed.
4746
- [`tagname-lowercase`](tagname-lowercase/): All HTML element names must be in lowercase.

website/src/content/docs/rules/tag-no-obsolete.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
---
22
id: tag-no-obsolete
33
title: tag-no-obsolete
4-
description: Disallows the use of obsolete HTML5 tags that are no longer supported in modern browsers.
5-
pagefind: false
4+
description: Disallows the use of obsolete HTML tags that are no longer supported in modern browsers.
65
sidebar:
76
badge: New
8-
hidden: true
97
---
108

119
import { Badge } from '@astrojs/starlight/components';
1210

13-
Disallows the use of obsolete HTML5 tags.
11+
Disallows the use of obsolete HTML tags.
1412

1513
Level: <Badge text="Error" variant="danger" />
1614

0 commit comments

Comments
 (0)