-
Notifications
You must be signed in to change notification settings - Fork 840
Open
Labels
Description
Product
axe Linter
Question
Is there support for linting HTML strings in JavaScript template literals? I often use Web Components or template literals in vanilla JS and it does not appear have any linting in VS Code.
Example
const inputAndLabel = `
<label>
Search
</label>
<input type="search" id="search" />
`;
I would expect this to tell me that the label is missing the for attribute.
I don't expect validation if the label and input were separate variables, however multi-line strings like in the example would be a nice feature if it does not exist.
Thanks.