-
-
Notifications
You must be signed in to change notification settings - Fork 949
formatter: Support quoteProps: "consistent" option #16247
Copy link
Copy link
Description
Prettier does have a consistent option on quoteProps so when an object has properties that require quotes, it will add quotes to all properties on the object for consistent format and look. Currently, oxfmt (just like Biome) does not have this option.
This is very useful when working with i18n data, where some properties can be strings with spaces that require quotes, while others are single words. Currently, oxfmt's default as-needed mixes the formatting, which looks ugly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-formatterArea - FormatterArea - Formatter
Type
Fields
Give feedbackPriority
None yet
Start date
None yet
Target date
None yet
Effort
None yet