Angular inline styles are not formatted if specified as single string (new in v17) #15934
Labels
lang:angular
Issues affecting Angular template (not general JS/TS issues used for Angular)
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:enhancement
A potential new feature to be added, or an improvement to how we print something
Prettier 3.2.2
Playground link
Input:
Output:
Expected output:
Why?
Since Angular v17 it is possible to specify an inline style with a single string rather than an array of strings. If specified as array prettier formats the css. If specified as string prettier does nothing with the css.
The text was updated successfully, but these errors were encountered: