Don't print Angular attribute values that are single template/string literals, on new lines (#18378)

Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
Ravindu Liyanapathiranaandfisker authored and fisker committed 2026-01-15 05:54:16 +08:00
1 parent 1d05c4cf2a
commit fa6f533e0f
8 files changed
+178 -51

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
#### Don't print Angular attribute values that are single template/string literals, on new lines (#18378 by @ravindUwU)
<!-- prettier-ignore -->
```html
<!-- Input -->
<component
[property]="`
template
literal
`"
/>
<!-- Prettier stable -->
<component
[property]="
`
template
literal
`
"
/>
<!-- Prettier main -->
<component
[property]="`
template
literal
`"
/>
```