html-eslint
html-eslint copied to clipboard
Feature request: use this with HTML in Javascript template literals
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