Skip to content

formatter: Support quoteProps: "consistent" option #16247

@phenomen

Description

@phenomen

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.

https://prettier.io/docs/options#quote-props

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.

Metadata

Metadata

Assignees

Labels

Priority

None yet

Start date

None yet

Target date

None yet

Effort

None yet

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions