From 8938f0bbdd1c1bc23521a9f6dc1e6557ceb6c8fc Mon Sep 17 00:00:00 2001 From: coliff Date: Thu, 19 Jun 2025 13:24:03 +0900 Subject: [PATCH] docs: update rules formatting --- .cspell.json | 4 ++++ test/manual-tests/attr-value-no-duplication/README.md | 0 .../attr-value-no-duplication/combined.htmlhintrc | 0 test/manual-tests/attr-value-no-duplication/custom.htmlhintrc | 0 .../manual-tests/attr-value-no-duplication/default.htmlhintrc | 0 test/manual-tests/attr-value-no-duplication/run-tests.bat | 0 test/manual-tests/attr-value-no-duplication/test.html | 0 website/src/content/docs/rules/attr-lowercase.mdx | 3 +-- website/src/content/docs/rules/tags-check.mdx | 3 +-- website/src/content/docs/vs-code-extension.mdx | 4 +++- 10 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 test/manual-tests/attr-value-no-duplication/README.md create mode 100644 test/manual-tests/attr-value-no-duplication/combined.htmlhintrc create mode 100644 test/manual-tests/attr-value-no-duplication/custom.htmlhintrc create mode 100644 test/manual-tests/attr-value-no-duplication/default.htmlhintrc create mode 100644 test/manual-tests/attr-value-no-duplication/run-tests.bat create mode 100644 test/manual-tests/attr-value-no-duplication/test.html diff --git a/.cspell.json b/.cspell.json index 011bcb02a..e83d306a0 100644 --- a/.cspell.json +++ b/.cspell.json @@ -32,13 +32,17 @@ "idclassaddisabled", "Infima", "invision", + "isindex", "Labelledby", "langtag", "mingo", "msapplication", + "nextid", + "nobr", "nocolor", "nodir", "noembed", + "noframes", "nomix", "noopener", "npmjs", diff --git a/test/manual-tests/attr-value-no-duplication/README.md b/test/manual-tests/attr-value-no-duplication/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/test/manual-tests/attr-value-no-duplication/combined.htmlhintrc b/test/manual-tests/attr-value-no-duplication/combined.htmlhintrc new file mode 100644 index 000000000..e69de29bb diff --git a/test/manual-tests/attr-value-no-duplication/custom.htmlhintrc b/test/manual-tests/attr-value-no-duplication/custom.htmlhintrc new file mode 100644 index 000000000..e69de29bb diff --git a/test/manual-tests/attr-value-no-duplication/default.htmlhintrc b/test/manual-tests/attr-value-no-duplication/default.htmlhintrc new file mode 100644 index 000000000..e69de29bb diff --git a/test/manual-tests/attr-value-no-duplication/run-tests.bat b/test/manual-tests/attr-value-no-duplication/run-tests.bat new file mode 100644 index 000000000..e69de29bb diff --git a/test/manual-tests/attr-value-no-duplication/test.html b/test/manual-tests/attr-value-no-duplication/test.html new file mode 100644 index 000000000..e69de29bb diff --git a/website/src/content/docs/rules/attr-lowercase.mdx b/website/src/content/docs/rules/attr-lowercase.mdx index 99f3a2a2e..3c551feb2 100644 --- a/website/src/content/docs/rules/attr-lowercase.mdx +++ b/website/src/content/docs/rules/attr-lowercase.mdx @@ -14,8 +14,7 @@ Level: - `true`: enable rule - `false`: disable rule - -3. ['fooBar', 'Test']: enable rule except for the given attribute names. All SVG camelCase properties are included, for example `viewBox` +- `['fooBar', 'Test']`: enable rule except for the given attribute names. All SVG camelCase properties are included, for example `viewBox` ### Example diff --git a/website/src/content/docs/rules/tags-check.mdx b/website/src/content/docs/rules/tags-check.mdx index 96bc761f4..8347982a9 100644 --- a/website/src/content/docs/rules/tags-check.mdx +++ b/website/src/content/docs/rules/tags-check.mdx @@ -14,8 +14,7 @@ Level: - `true`: enable rule - `false`: disable rule - -3. `{}:` configuration object, mapping values of tags to their respective configuration. Tags configuration can have properties of: +- `{}:` configuration object, mapping values of tags to their respective configuration. Tags configuration can have properties of: `selfclosing` diff --git a/website/src/content/docs/vs-code-extension.mdx b/website/src/content/docs/vs-code-extension.mdx index fd0e051ac..369e439ab 100644 --- a/website/src/content/docs/vs-code-extension.mdx +++ b/website/src/content/docs/vs-code-extension.mdx @@ -9,7 +9,7 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components' Get realtime linting feedback in Visual Studio Code with the HTMLHint extension. This extension provides a seamless integration of HTMLHint into your development workflow, allowing you to catch HTML issues as you type. -The HTMLHint extension will attempt to use the locally installed HTMLHint module (the project-specific module if present, or a globally installed HTMLHint module). If a locally installed HTMLHint isn't available, the extension will use the embedded version (current version 1.5.1). +The HTMLHint extension will attempt to use the locally installed HTMLHint module (the project-specific module if present, or a globally installed HTMLHint module). If a locally installed HTMLHint isn't available, the extension will use the embedded version (current version 1.6.3). ## Download @@ -23,3 +23,5 @@ The HTMLHint extension will attempt to use the locally installed HTMLHint module href="https://open-vsx.org/extension/HTMLHint/vscode-htmlhint" /> + +The code is available on [GitHub](https://github.com/htmlhint/vscode-htmlhint).