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
3 changes: 3 additions & 0 deletions htmlhint-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface Settings {
configFile: string;
enable: boolean;
options: any;
optionsFile: string;
};
[key: string]: any;
}
Expand Down Expand Up @@ -109,6 +110,8 @@ function getConfiguration(filePath: string): any {
Object.keys(settings.htmlhint.options).length > 0
) {
options = settings.htmlhint.options;
} else if (settings.htmlhint && settings.htmlhint.optionsFile) {
options = loadConfigurationFile(settings.htmlhint.optionsFile);
} else {
options = findConfigForHtmlFile(filePath);
}
Expand Down
4 changes: 4 additions & 0 deletions htmlhint/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to the "vscode-htmlhint" extension will be documented in this file.

### v1.4.2 (2025-06-04)

- Fixes missing config file path option. You could now specify a custom path to your `.htmlhintrc` file in the extension settings. e.g. `"htmlhint.optionsFile": "your-project-subfolder/.htmlhintrc"`

### v1.4.1 (2025-06-04)

- Minor optimizations and code cleanup
Expand Down
4 changes: 2 additions & 2 deletions htmlhint/package-lock.json

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

7 changes: 6 additions & 1 deletion htmlhint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "HTMLHint",
"description": "VS Code integration for HTMLHint - A Static Code Analysis Tool for HTML",
"icon": "images/icon.png",
"version": "1.4.1",
"version": "1.4.2",
"publisher": "HTMLHint",
"galleryBanner": {
"color": "#333333",
Expand Down Expand Up @@ -54,6 +54,11 @@
"type": "object",
"default": {},
"description": "The HTMLHint options object to provide args to the HTMLHint command."
},
"htmlhint.optionsFile": {
"type": "string",
"default": null,
"description": "The HTMLHint options config file path."
}
}
},
Expand Down