html-eslint icon indicating copy to clipboard operation
html-eslint copied to clipboard

Feature request: use this with HTML in Javascript template literals

Open RobertAKARobin opened this issue 1 year ago • 2 comments

The /*html*//html template literal syntax is used by several libraries, like Lit:

const myTemplate = /*html*/`
<div>
  <h1>Hello, world!</h1>
</div>
`;

document.body.innerHTML = myTemplate;

It would be nice if html-eslint could be run on Javascript template literals like this.

See also https://github.com/pushqrdx/vscode-inline-html

RobertAKARobin avatar Jun 20 '24 19:06 RobertAKARobin