chore(*): replace 'prettier' with 'oxfmt' #584
main fromrefs/pull/584/head·merged by sukvvon(GitHub profile, opens in a new tab) View on GitHub🎯 Changes#
Replace Prettier with Oxfmt. The formatting options are unchanged.
prettier.config.js,.prettierignore: deleted, replaced withoxfmt.config.ts.semi,singleQuoteandtrailingCommaare carried over.printWidth: 80andsortPackageJson: falseare set explicitly, because Oxfmt defaults to100andtrue.svelte: {}replacesprettier-plugin-svelte.- The
.prettierignorepatterns move toignorePatterns.
examples/angular/*/.prettierrc: deleted, so the root config formats these examples too. TheirprintWidthgoes from100to80.package.json- The
formatscript runsoxfmt. prettierandprettier-plugin-svelteare removed.oxfmtandsvelteare added todevDependencies.prettieris removed from the Angular examples'devDependencies.
- The
tsconfig.json:includelistsoxfmt.config.tsinstead ofprettier.config.js..vscode/extensions.json: recommendoxc.oxc-vscodeinstead ofesbenp.prettier-vscode.pnpm-lock.yaml: lockfile update for the dependency changes above.- Reformatted 19 files where Oxfmt's output differs from Prettier's:
- union types that break onto their own line
${}expressions in CSS template literals- empty arrays with comments in Markdown code blocks
- the Angular examples'
printWidth
✅ Checklist#
- I have followed the steps in the Contributing guide.
- I have tested code changes locally with
pnpm test:pr, or these tests do not apply to this pull request. - I fully understand the code in this pull request, including any code generated with AI assistance.
🚀 Release Impact#
- This change affects published code, and I have generated a changeset.
- This change is docs/CI/dev-only (no release).
Summary by CodeRabbit#
- Chores
- Updated the project’s formatting workflow to use Oxc Formatter. Formatting settings and ignored paths have been updated accordingly.
- Removed Prettier configuration and development dependencies from the project and Angular examples.
- Documentation
- Reformatted code samples in the guides and examples. No documented behavior or example functionality has changed.
- 1
No actionable comments were generated in the recent review.
Walkthrough
-
The repository switches its formatting command and development dependency from Prettier to Oxfmt, adds Oxfmt configuration, and removes Prettier configuration and ignore files. The diff also reformats Angular examples and selected source and documentation.
Changes: Formatting tool migration
Layer / File(s) Summary Configure Oxfmt
oxfmt.config.ts,package.json,prettier.config.js,tsconfig.json,.prettierignore,.vscode/extensions.jsonAdds Oxfmt settings and updates the format script, TypeScript include list, and editor recommendation. Removes Prettier configuration and ignore entries, and replaces the root Prettier dependencies with Oxfmt. Update Angular examples
examples/angular/*/.prettierrc,examples/angular/*/package.json,examples/angular/*/src/app/*Removes per-example Prettier configuration and dependencies. Reformats Angular example imports, templates, signal declarations, and calls. Reformat source and documentation
README.md,packages/devtools-rspack/README.md,packages/devtools-ui/src/styles/use-styles.ts,packages/devtools-ui/src/utils/deep-keys.ts,packages/devtools-utils/skills/devtools-framework-adapters/references/vue.md,packages/devtools-utils/src/angular/plugin.ts,packages/devtools/skills/devtools-production/SKILL.md,packages/devtools/src/styles/use-styles.tsReformats selected styles, type logic, and documentation examples. Adds blank lines around the README sponsor heading. Estimated code review effort: 2 (Simple) | ~12 minutes
Change: Other
Suggested reviewers:
kevinvandy,alemtuzlak,riccardoperra
Merge Risk:
Minimal · up toa584d· assessed changes only-
Path filters excluded changed files. This rating applies only to the assessed changes.
Pre-merge checks:
4-
Check name Status Explanation Title check The title states the main change: Prettier is replaced with oxfmt. The raw summary confirms this. The root format script, package.json dev dependencies, oxfmt.config.ts, and deleted prettier.config.js… Description check The description follows the template. It has the Changes section with a clear explanation of the Prettier-to-Oxfmt migration and per-file details. The checklist is present. The first checklist item an… Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Full details: Title check
-
Explanation
The title states the main change: Prettier is replaced with oxfmt. The raw summary confirms this. The root format script, package.json dev dependencies, oxfmt.config.ts, and deleted prettier.config.js and .prettierignore all match the title. The 'chore(*):' prefix is a conventional commit type and scope, which is acceptable. The title is short, specific, and clear.
Full details: Description check
-
Explanation
The description follows the template. It has the Changes section with a clear explanation of the Prettier-to-Oxfmt migration and per-file details. The checklist is present. The first checklist item and the docs/CI/dev-only release option are checked. The 'pnpm test:pr' item is left unchecked, and the description does not say whether tests were run. The Release Impact section marks the change as docs/CI/dev-only. The raw summary shows changes to published packages (packages/devtools/src/styles/use-styles.ts, packages/devtools-ui, packages/devtools-utils), so this label may be incorrect. The description also states the 19-file reformat, but the raw summary lists more files than that. The description is mostly complete but has a questionable release classification and an unverified test status.
Resolution
Consider these follow-ups. Confirm whether the release classification is correct, because the diff changes files under packages/ that may be published. If so, add a changeset and check the changeset box. Also state whether pnpm test:pr was run, or check the box with its result.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: TanStack/devtools
- Branch: chore/replace-prettier-with-oxfmt
- File: .coderabbit.yaml
- Commit: a584d4c
- Layers: Repository YAML
- Review profile: CHILL
- Plan: Advanced
- Run ID:
cb7fbc24-186e-483c-a5af-e905f9fa1843
Commits-
Reviewing files that changed from the base of the PR and between 1ff67341c1c28af3ce2ae3522e44064f08fea785 and a584d4c6125821f90a9dc80e3bcce6df96be130b.
Files ignored due to path filters: 1-
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
Files selected for processing: 33-
.prettierignore.vscode/extensions.jsonREADME.mdexamples/angular/a11y-devtools/.prettierrcexamples/angular/a11y-devtools/package.jsonexamples/angular/a11y-devtools/src/app/app.config.tsexamples/angular/a11y-devtools/src/app/app.tsexamples/angular/a11y-devtools/src/app/devtools/custom-devtools-panel.tsexamples/angular/basic/.prettierrcexamples/angular/basic/package.jsonexamples/angular/basic/src/app/app.config.tsexamples/angular/basic/src/app/app.tsexamples/angular/basic/src/app/devtools/custom-devtools-panel.tsexamples/angular/panel/.prettierrcexamples/angular/panel/package.jsonexamples/angular/panel/src/app/app.config.tsexamples/angular/panel/src/app/app.tsexamples/angular/panel/src/app/devtools/custom-devtools-panel.tsexamples/angular/with-devtools/.prettierrcexamples/angular/with-devtools/package.jsonexamples/angular/with-devtools/src/app/app.config.tsexamples/angular/with-devtools/src/app/devtools/custom-devtools-panel.tsoxfmt.config.tspackage.jsonpackages/devtools-rspack/README.mdpackages/devtools-ui/src/styles/use-styles.tspackages/devtools-ui/src/utils/deep-keys.tspackages/devtools-utils/skills/devtools-framework-adapters/references/vue.mdpackages/devtools-utils/src/angular/plugin.tspackages/devtools/skills/devtools-production/SKILL.mdpackages/devtools/src/styles/use-styles.tsprettier.config.jstsconfig.json
Files with no reviewable changes: 10-
- .prettierignore
- examples/angular/a11y-devtools/.prettierrc
- examples/angular/a11y-devtools/package.json
- examples/angular/basic/.prettierrc
- examples/angular/basic/package.json
- examples/angular/panel/.prettierrc
- examples/angular/panel/package.json
- examples/angular/with-devtools/.prettierrc
- examples/angular/with-devtools/package.json
- prettier.config.js
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
-
-
sukvvon(GitHub profile, opens in a new tab) assignedsukvvon
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
Diff Package Supply Chain
SecurityVulnerability Quality Maintenance License oxfmt@0.81.0 View your CI Pipeline Execution ↗ for commit a584d4c6125821f90a9dc80e3bcce6df96be130b
Command Status Duration Result nx run-many --target=test:e2e --parallel=1 --pr...✅ Succeeded 1m 27s View ↗ nx run-many --targets=build --exclude=examples/...✅ Succeeded 2s View ↗ nx affected --targets=test:eslint,test:sherif,t...✅ Succeeded 3m 2s View ↗ 💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗
☁️ Nx Cloud last updated this comment at
2026-12-02 01:33:10UTCMore templates
- @tanstack/devtools-example-angular-a11y-devtools
- @tanstack/devtools-example-angular-basic
- @tanstack/devtools-example-angular-panel
- ssr
- @tanstack/devtools-example-angular-with-devtools
- @tanstack/devtools-example-preact-basic
- @tanstack/devtools-custom-devtools-preact
- @tanstack/react-devtools-a11y-example
- @tanstack/devtools-example-react-basic
- start-repro
- @tanstack/devtools-custom-devtools
- tanstack-start-example-counter
- @tanstack/devtools-example-react-https
- start
- start-cloudflare
- start-nitro
- @tanstack/devtools-example-react-time-travel
- @tanstack/solid-devtools-a11y-example
- @tanstack/devtools-example-solid-basic
- @tanstack/devtools-example-devtools-ui
- @tanstack/devtools-example-solid-start
- @tanstack/query-example-vue-basic
@tanstack/angular-devtools
npm i https://pkg.pr.new/@tanstack/angular-devtools@584@tanstack/devtools
npm i https://pkg.pr.new/@tanstack/devtools@584@tanstack/devtools-a11y
npm i https://pkg.pr.new/@tanstack/devtools-a11y@584@tanstack/devtools-bundler-core
npm i https://pkg.pr.new/@tanstack/devtools-bundler-core@584@tanstack/devtools-client
npm i https://pkg.pr.new/@tanstack/devtools-client@584@tanstack/devtools-rspack
npm i https://pkg.pr.new/@tanstack/devtools-rspack@584@tanstack/devtools-ui
npm i https://pkg.pr.new/@tanstack/devtools-ui@584@tanstack/devtools-utils
npm i https://pkg.pr.new/@tanstack/devtools-utils@584@tanstack/devtools-vite
npm i https://pkg.pr.new/@tanstack/devtools-vite@584@tanstack/devtools-webmcp
npm i https://pkg.pr.new/@tanstack/devtools-webmcp@584@tanstack/devtools-event-bus
npm i https://pkg.pr.new/@tanstack/devtools-event-bus@584@tanstack/devtools-event-client
npm i https://pkg.pr.new/@tanstack/devtools-event-client@584@tanstack/preact-devtools
npm i https://pkg.pr.new/@tanstack/preact-devtools@584@tanstack/react-devtools
npm i https://pkg.pr.new/@tanstack/react-devtools@584@tanstack/solid-devtools
npm i https://pkg.pr.new/@tanstack/solid-devtools@584@tanstack/svelte-devtools
npm i https://pkg.pr.new/@tanstack/svelte-devtools@584@tanstack/vue-devtools
npm i https://pkg.pr.new/@tanstack/vue-devtools@584commit:
a584d4csukvvon(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
⚠️ No Changeset found#
Latest commit: a584d4c6125821f90a9dc80e3bcce6df96be130b
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR