8000 [BUG] `quotes` rule incorrectly reports error for attribute with template expression · Issue #333 · yeonjuan/html-eslint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[BUG] quotes rule incorrectly reports error for attribute with template expression #333
Closed
@yeonjuan

Description

@yeonjuan

Describe the bug
The rule should not enforce quoting style for dynamic expressions like this

const bar = "bar";
html`<div foo=${bar}></div>`;

To Reproduce

https://html-eslint.org/playground#eyJjb2RlIjoiY29uc3QgYmFyID0gXCJiYXJcIjtcbmh0bWxgPGRpdiBmb289JHtiYXJ9PjwvZGl2PmA7IiwiY29uZmlnIjp7InJ1bGVzIjp7IkBodG1sLWVzbGludC9xdW90ZXMiOiJlcnJvciJ9fSwibGFuZ3VhZ2UiOiJqYXZhc2NyaXB0In0=

Expected behavior

No lint error for the above case.

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0