Fix LWC attribute with --embedded-language-formatting off (#18383)

Co-authored-by: fisker <lionkay@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2025-12-01 11:25:11 +08:00
1 parent 363a20e1c1
commit c45fef106e
6 files changed
+94 -18

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#### Avoid quote around interpolations (#18383 by @kovsu)
<!-- prettier-ignore -->
```html
<!-- Input -->
<div foo={bar}> </div>
<!-- Prettier stable (--embedded-language-formatting off) -->
<div foo="{bar}"></div>
<!-- Prettier main (--embedded-language-formatting off) -->
<div foo={bar}></div>
```