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:
6 files changed
+94
-18
No files matched your search
@@ -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>
|
||||
```
|
||||
Reference in new issue
Block a user