dequelabs / dequelabs/axe-core

Support Linting of HTML strings in JS template literals.

Open
#4,874 3 comments 0 reactions 0 assignees View on GitHub
feat linting
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

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 = `

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.