Skip to content

Add yaml quotes option#704

Open
stefnnn wants to merge 2 commits intoglebm:mainfrom
stefnnn:add-yaml-quotes-option
Open

Add yaml quotes option#704
stefnnn wants to merge 2 commits intoglebm:mainfrom
stefnnn:add-yaml-quotes-option

Conversation

@stefnnn
Copy link

@stefnnn stefnnn commented Jan 12, 2026

When using the i18n-tasks normalize feature, the ruby yaml library prefers to use single quotes. Those normalized files will then fail standard prettier checks. Prettier by default has a quotes strategy, where they minimize escapes and prefer double quotes. This PR makes the YAML quoting configurable, while keeping the current default single quotes.

@davidwessman
Copy link
Collaborator

Sorry for slow response.

I am not sure how I feel about this, it adds a lot of complexity and I think I prefer to not add any more logic to reading/printing the yaml files.
What is your opinion @glebm ?

@stefnnn
Copy link
Author

stefnnn commented Feb 7, 2026

I understand the concern and of course I can just use my version of my branch, so feel free to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants