Skip to content

prettier -> oxfmt#359

Merged
david-crespo merged 2 commits into
mainfrom
switch-to-oxfmt
Jun 19, 2026
Merged

prettier -> oxfmt#359
david-crespo merged 2 commits into
mainfrom
switch-to-oxfmt

Conversation

@david-crespo

Copy link
Copy Markdown
Collaborator

We were using prettier in three ways:

  • Format the generator source
  • Format the generated output after generation (separate pinned version)
  • Use programmatic interface to format some generated code as part of snapshot testing

d7d2269 gets rid of the third one: turns out the snapshots are perfectly readable even without being formatted. The other two were straightforward to convert to oxfmt. The changes in the generator source are all just trailing commas. We were using two different version of prettier before, and the one on the source had trailing commas es5, and the one on the generated output has trailing commas all. So to make it consistent and avoid any changes to the generated client output, I went with all.

fix(generator): newline after ( in union types for oxfmt/prettier parity
@david-crespo david-crespo merged commit 33a242e into main Jun 19, 2026
3 checks passed
@david-crespo david-crespo deleted the switch-to-oxfmt branch June 19, 2026 05:18
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.

1 participant