Summary
Evaluate replacing prettier with oxfmt (the Oxc formatter) for code formatting across the repository.
Motivation
Recover import sorting — After migrating to oxlint (chore: Migrate from ESLint to oxlint #5867 ), we lost simple-import-sort/imports enforcement since oxlint has no equivalent rule. oxfmt supports import sorting natively , which would fill this gap.
Align with Oxc toolchain — We already use oxlint for linting. Using oxfmt for formatting keeps the toolchain consistent (single ecosystem).
Performance — oxfmt is significantly faster than prettier, same as oxlint vs ESLint.
100% prettier compatibility — oxfmt has 100% coverage of prettier for JavaScript/TypeScript, so migration should be low-risk.
Scope
Evaluate oxfmt's prettier compatibility for the codebase (run both, diff output)
Verify import sorting configuration meets our needs (single group, same order as simple-import-sort)
Test with CI pipeline
If viable: replace prettier with oxfmt in all workspaces, update lint/fix scripts
Considerations
The repo also uses prettier for non-JS formatting — check if oxfmt handles all file types or if prettier needs to stay for some
Sample apps and performance tests also use prettier
sentry-javascript may also be evaluating this — coordinate if possible
Related
Summary
Evaluate replacing prettier with oxfmt (the Oxc formatter) for code formatting across the repository.
Motivation
simple-import-sort/importsenforcement since oxlint has no equivalent rule. oxfmt supports import sorting natively, which would fill this gap.Scope
simple-import-sort)Considerations
Related