https://github.com/linthtml/vscode-linthtml
A vscode extension that bring LintHTML errors in vscode
https://github.com/linthtml/vscode-linthtml
Last synced: 2 months ago
JSON representation
A vscode extension that bring LintHTML errors in vscode
- Host: GitHub
- URL: https://github.com/linthtml/vscode-linthtml
- Owner: linthtml
- License: apache-2.0
- Created: 2019-04-06T17:02:38.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-12-19T09:10:13.000Z (over 1 year ago)
- Last Synced: 2024-12-19T10:25:04.368Z (over 1 year ago)
- Language: TypeScript
- Size: 1.6 MB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# VS Code LintHTML extension
[](https://travis-ci.org/KamiKillertO/vscode-linthtml)
A [Visual Studio Code extension](https://code.visualstudio.com/) to lint [HTML](https://html.spec.whatwg.org/multipage/) with [LintHTML](https://github.com/linthtml/linthtml).

_If you find some error message not explicit enough, please create an issue [here](https://github.com/KamiKillertO/vscode-linthtml/issues)_
## Installation
1. Execute `Extensions: Install Extensions` command from [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette).
2. Type `@sort:installs linthtml` into the search form and install the topmost one.
Read the [extension installation guide](https://code.visualstudio.com/docs/editor/extension-gallery) for more details.
## Usage
This extension automatically validates documents with these [language identifiers](https://code.visualstudio.com/docs/languages/overview#_language-id):
* HTML (`html`)
If you have a valid hmllint configuration file `.linthtmlrc` (all options available [here](https://github.com/linthtml/linthtml/wiki/Options)) in the current workspace folder the extension will use it. Otherwise, the default configuration of linthtml will be used.
## Extension settings
### linthtml.enable
Type: `boolean`
Default: `true`
Control whether this extension is enabled or not.
### linthtml.configFile
Type: `string`
Default: `null`
Specified the path to a config file for LintHTML that will be used to lint all HTML files in the current workspace.
## License
[APACHE 2.0 License](./LICENSE)