Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ updates:
update-types:
- "patch"
schedule:
interval: monthly
interval: weekly
versioning-strategy: increase
open-pull-requests-limit: 2

Expand All @@ -29,7 +29,7 @@ updates:
update-types:
- "patch"
schedule:
interval: monthly
interval: weekly
versioning-strategy: increase
open-pull-requests-limit: 2

Expand All @@ -42,6 +42,6 @@ updates:
update-types:
- "patch"
schedule:
interval: monthly
interval: weekly
versioning-strategy: increase
open-pull-requests-limit: 2
16 changes: 8 additions & 8 deletions htmlhint-server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions htmlhint-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"watch": "tsc --watch -p ./src"
},
"dependencies": {
"htmlhint": "^1.2.0",
"htmlhint": "^1.3.0",
"strip-json-comments": "3.1.1",
"vscode-languageserver": "3.5.1"
},
"devDependencies": {
"@types/node": "^20.17.52",
"@types/node": "20.17.57",
"typescript": "^5.8.3"
},
"engines": {
Expand Down
8 changes: 4 additions & 4 deletions htmlhint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Errors in HTML files are highlighted with squiggles and you can hover over the s

## Rules

The HTMLHint extension uses the default [rules](https://htmlhint.com/docs/user-guide/list-rules) provided by HTMLHint.
The HTMLHint extension uses the default [rules](https://htmlhint.com/list-rules/) provided by HTMLHint.

```json
{
Expand All @@ -45,15 +45,15 @@ The HTMLHint extension uses the default [rules](https://htmlhint.com/docs/user-g

If you'd like to modify the rules, you can provide a `.htmlhintrc` file in the root of your project folder with a reduced ruleset or modified values.

You can learn more about rule configuration at the HTMLHint [Usage page](https://htmlhint.com/docs/user-guide/usage/cli).
You can learn more about rule configuration at the HTMLHint [Usage page](https://htmlhint.com/usage/cli/).

## Additional file types

By default, HTMLHint will run on any files associated with the "html" language service (i.e., ".html" and ".htm" files). If you'd like to use the HTMLHint extension with additional file types, you have two options:

### Option 1: Treating your file like any other HTML file

If you would like the file type to be treated as any other HTML file (including syntax highlighting, as well as HTMLHint linting), you'll need to associate the extension with the HTML language service. Add the following to your VS Code [settings](https://code.visualstudio.com/docs/getstarted/settings), replacing `"*.ext"` with your file extension.
If you would like the file type to be treated as any other HTML file (including syntax highlighting, as well as HTMLHint linting), you'll need to associate the extension with the HTML language service. Add the following to your VS Code [settings](https://code.visualstudio.com/docs/configure/settings), replacing `"*.ext"` with your file extension.

```json
{
Expand All @@ -65,7 +65,7 @@ If you would like the file type to be treated as any other HTML file (including

### Option 2: Associating HTMLHint extension with your file type

If your file type already has an associated language service other than "html", and you'd like HTMLHint to process those file types, you will need to associate the HTMLHint extension with that language service. Add the following to your VS Code [settings](https://code.visualstudio.com/docs/getstarted/settings), replacing `"mylang"` with your language service. For example, if you want HTMLHint to process `.twig` files, you would use `"twig"`. Note that with this configuration, **you need to open an HTML file first** to activate the HTMLHint extension. Otherwise, you won't see any linter errors, (the extension is hard-coded to activate when the HTML language service activates).
If your file type already has an associated language service other than "html", and you'd like HTMLHint to process those file types, you will need to associate the HTMLHint extension with that language service. Add the following to your VS Code [settings](https://code.visualstudio.com/docs/configure/settings), replacing `"mylang"` with your language service. For example, if you want HTMLHint to process `.twig` files, you would use `"twig"`. Note that with this configuration, **you need to open an HTML file first** to activate the HTMLHint extension. Otherwise, you won't see any linter errors, (the extension is hard-coded to activate when the HTML language service activates).

```json
{
Expand Down