43081j / 43081j/eslint-plugin-lit

rule: Expressions can occur in text content or in attribute value positions.

未關閉
#73 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
138
分支
26
平均合併
23 小時 29 分鐘
30 天內合併 PR
4

描述

would it be worth while (and, tractable) to have a rule that enforces the above lit-html constraint? the following concocted code, for example, causes an exception:
````
render(html`

`, $('body')[0])
````

while the following produces happiness
````
render(html`

`, $('body')[0])
````
(if that's what you were looking for.)

cheers.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。