43081j / 43081j/eslint-plugin-lit
False positive when using static expressions
Open
- Dominant language
- TypeScript
- Stars
- 138
- Forks
- 26
- Avg merge
- 23h 29m
- Merged PRs (30d)
- 4
Description
The following minimal code triggers the rules "lit/binding-positions" and "lit/no-invalid-html", although it should be completely valid according to the lit documentation (https://lit.dev/docs/templates/expressions/#static-expressions).
```ts
import { html, literal, StaticValue } from 'lit/static-html.js';
const tag: StaticValue = literal`header`;
return html`<${tag} class="classes">Content`
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.