43081j / 43081j/eslint-plugin-lit
Limit rules to templates tagged with lit-html's html tag
- 主要语言
- TypeScript
- 星标
- 138
- 派生
- 26
- 平均合并
- 23 小时 29 分钟
- 30 天内合并 PR
- 4
描述
I'm introducing Lit Element into [my Polymer 3 project](https://github.com/home-assistant/home-assistant-polymer/pull/1738). I won't be able to convert all elements to Lit from the get go and so have a mix of Polymer 3 and Lit Elements.
The issue is that the rules will scan based on finding a template literal expression started with a `html` tag, however that is also how Polymer 3 functions ([example](https://github.com/home-assistant/home-assistant-polymer/blob/master/src/panels/lovelace/components/hui-image.js#L24).
A fix for this would be to add a check that the html tag that is used was imported from the lit-html package (lit-element re-exports html from lit-html).
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。