0.0.23 • Published 6 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
6 years ago
0.0.22
6 years ago
0.0.21
6 years ago
0.0.20
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago