0.0.23 • Published 5 years ago
ts-html-plugin v0.0.23
Typescript HTML Plugin
Typescript plugin that adds type checking and code completion for html inside tagged template strings like lit-html.
Features
- Attribute type checking.
- Report missing imports of custom elements.
- Goto definition for tags and attributes.
- Code completions for html tags and attributes.
- Quick info on on hover for tags and attributes.
- Required attributes not included
- Auto closing tags.
Install
Visual Studio Code
If you use Visual Studio Code you can simply install the tagged-html extension.
code --install-extension runem.tagged-html
Other
First, install the plugin:
npm install ts-html-plugin -D
Then add a plugins
section to your tsconfig.json
:
{
"compilerOptions": {
"plugins": [
{
"name": "ts-html-plugin",
"flavor": "lit-html"
}
]
}
}
Roadmap
- Support for web-components.json
- Add tests
- Aria/accessibility mode
- SVG support
- CSS support
- Support "// @ts-ignore"
- Type check events (onclick, @click, eg.)
- Type check slots
- lit-html: Directive type checking support.
- lit-element: Better support for the @property({}) decorator taking metadata into account.
- vanilla: Parse custom elements (observedAttributes, eg.)
0.0.23
5 years ago
0.0.22
5 years ago
0.0.21
5 years ago
0.0.20
5 years ago
0.0.19
5 years ago
0.0.18
5 years ago
0.0.17
5 years ago
0.0.15
5 years ago
0.0.14
5 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago