build(prettier): switch formatter to @prettier/plugin-oxc#822
Merged
Conversation
Faster Rust-based printer; output matches existing style so no repo-wide reformat. - replace prettier-plugin-organize-imports with @prettier/plugin-oxc in .prettierrc and devDependencies - drops format-time import sorting and unused-import removal — unused imports now surface as @typescript-eslint/no-unused-vars errors instead of being auto-stripped
lcottercertinia
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 PR Overview
Replaces
prettier-plugin-organize-importswith@prettier/plugin-oxc, swapping Prettier's printer for oxc's faster Rust-based formatter. Output matches the existing code style, so no repo-wide reformat is needed.🛠️ Changes made
.prettierrcand devDependencies:prettier-plugin-organize-imports→@prettier/plugin-oxc.prettier --checkis clean across the repo under oxc — no formatting churn.🧩 Type of change (check all applicable)
📷 Screenshots / gifs / video [optional]
N/A — tooling/config only.
✅ Tests added?
📚 Docs updated?
🧪badge — see RELEASING.md)Anything else we need to know? [optional]
Behavior trade-off (intentional):
@prettier/plugin-oxcis a formatter only — unlikeprettier-plugin-organize-imports, it does not sort imports or remove unused ones. Unused imports now surface as@typescript-eslint/no-unused-varserrors at lint time rather than being auto-stripped on format. A dedicated sort plugin (e.g.@ianvs/prettier-plugin-sort-imports) can be layered on later if import ordering needs enforcing.