Skip to content

Commit e7eb174

Browse files
authored
Release v150 (#1632)
1 parent fef603a commit e7eb174

File tree

6 files changed

+26
-5
lines changed

6 files changed

+26
-5
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.4.0",
3+
"version": "1.5.0",
44
"description": "The Static Code Analysis Tool for your HTML",
55
"keywords": [
66
"html",

website/src/content/docs/changelog.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ 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.5.0 _(2025-06-06)_
9+
10+
- <Badge text="Feat" size="small" /> Add `htmlhint --init` command to create a .htmlhintrc file
11+
[#1630](https://github.com/htmlhint/HTMLHint/pull/1630)
12+
- <Badge text="Feat" size="small" /> Add SARIF formatter
13+
[#1627](https://github.com/htmlhint/HTMLHint/issues/1627)
14+
- <Badge text="Feat" size="small" /> New rule: [`frame-title-require`](/rules/frame-title-require/)
15+
[#1629](https://github.com/htmlhint/HTMLHint/issues/1629)
16+
- <Badge text="Feat" size="small" /> New rule: [`meta-charset-require`](/rules/meta-charset-require/)
17+
[#1628](https://github.com/htmlhint/HTMLHint/issues/1628)
18+
- <Badge text="Fix" size="small" variant="danger" /> Improve HTML report formatting (dark mode)
19+
[#1621](https://github.com/htmlhint/HTMLHint/issues/1621)
20+
- <Badge text="Fix" size="small" variant="danger" /> Special character escape in HTML reports
21+
[#1626](https://github.com/htmlhint/HTMLHint/issues/1626)
22+
823
## 1.4.0 _(2025-06-03)_
924

1025
- <Badge text="Feat" size="small" /> New rule: [`button-type-require`](/rules/button-type-require/)

website/src/content/docs/rules/frame-title-require.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ id: frame-title-require
33
title: frame-title-require
44
description: Requires that frame and iframe elements have an accessible name for screen readers and assistive technologies.
55
sidebar:
6-
hidden: true
76
badge: New
87
---
98

website/src/content/docs/rules/meta-charset-require.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ id: meta-charset-require
33
title: meta-charset-require
44
description: Ensures every HTML document includes a meta charset tag within the head element for proper character encoding.
55
sidebar:
6-
hidden: true
76
badge: New
87
---
98

website/src/content/docs/usage/cli.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ In addition to the [standard options](/usage/options/), the CLI accepts:
1919

2020
Force enabling/disabling of color.
2121

22+
### `--init`
23+
24+
Create a new HTMLHint configuration file (`.htmlhintrc`) in the current directory with default rules. If a configuration file already exists, this command will exit successfully without making changes.
25+
26+
```shell
27+
npx htmlhint --init
28+
```
29+
2230
### `--list, -l`
2331

2432
Show all the rules available

0 commit comments

Comments
 (0)