eslint-plugin-lit icon indicating copy to clipboard operation
eslint-plugin-lit copied to clipboard

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

Open greg-minshall opened this issue 3 years ago • 0 comments

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`<div ${'data="cancel"'}></div>`, $('body')[0])

while the following produces happiness

render(html`<div data=${"cancel"}></div>`, $('body')[0])

(if that's what you were looking for.)

cheers.

greg-minshall avatar Dec 01 '20 17:12 greg-minshall