yeonjuan / html-eslint

ESLint plugin for linting HTML
https://html-eslint.org
MIT License
155 stars 28 forks source link

Lint HTML embedded in JS source #218

Open LoicMahieu opened 3 weeks ago

LoicMahieu commented 3 weeks ago

I would like to lint HTML code that is stored directly in like this:

const someView = `<div>Hello</div>`;

Prettier supports this by using a html tag:

const someView = html`<div>Hello</div>`;

It works pretty well but eslint does not seems to support it.

RobertAKARobin commented 3 weeks ago

Duplicate of #196