Skip to content
Source
Sign inSign up
TanStack/devtools

chore(*): replace 'prettier' with 'oxfmt' #584

Mergedsukvvon(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/584/headmerged by sukvvon(GitHub profile, opens in a new tab) View on GitHub

sukvvon(GitHub profile, opens in a new tab)commented

🎯 Changes

Replace Prettier with Oxfmt. The formatting options are unchanged.

  • prettier.config.js, .prettierignore: deleted, replaced with oxfmt.config.ts.
    • semi, singleQuote and trailingComma are carried over.
    • printWidth: 80 and sortPackageJson: false are set explicitly, because Oxfmt defaults to 100 and true.
    • svelte: {} replaces prettier-plugin-svelte.
    • The .prettierignore patterns move to ignorePatterns.
  • examples/angular/*/.prettierrc: deleted, so the root config formats these examples too. Their printWidth goes from 100 to 80.
  • package.json
    • The format script runs oxfmt.
    • prettier and prettier-plugin-svelte are removed. oxfmt and svelte are added to devDependencies.
    • prettier is removed from the Angular examples' devDependencies.
  • tsconfig.json: include lists oxfmt.config.ts instead of prettier.config.js.
  • .vscode/extensions.json: recommend oxc.oxc-vscode instead of esbenp.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 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

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Explain Change →

      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.json
      Adds 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.ts
      Reformats 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 to a584d · assessed changes only

      Path filters excluded changed files. This rating applies only to the assessed changes.

      Pre-merge checks: Passed 4

      Check nameStatusExplanation
      Title checkPassedThe 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 checkPassedThe 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 checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck 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.

      Share

      Recent review info

      Run configuration

      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.yaml is excluded by !**/pnpm-lock.yaml
      Files selected for processing: 33

      • .prettierignore
      • .vscode/extensions.json
      • README.md
      • examples/angular/a11y-devtools/.prettierrc
      • examples/angular/a11y-devtools/package.json
      • examples/angular/a11y-devtools/src/app/app.config.ts
      • examples/angular/a11y-devtools/src/app/app.ts
      • examples/angular/a11y-devtools/src/app/devtools/custom-devtools-panel.ts
      • examples/angular/basic/.prettierrc
      • examples/angular/basic/package.json
      • examples/angular/basic/src/app/app.config.ts
      • examples/angular/basic/src/app/app.ts
      • examples/angular/basic/src/app/devtools/custom-devtools-panel.ts
      • examples/angular/panel/.prettierrc
      • examples/angular/panel/package.json
      • examples/angular/panel/src/app/app.config.ts
      • examples/angular/panel/src/app/app.ts
      • examples/angular/panel/src/app/devtools/custom-devtools-panel.ts
      • examples/angular/with-devtools/.prettierrc
      • examples/angular/with-devtools/package.json
      • examples/angular/with-devtools/src/app/app.config.ts
      • examples/angular/with-devtools/src/app/devtools/custom-devtools-panel.ts
      • oxfmt.config.ts
      • package.json
      • 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.ts
      • prettier.config.js
      • tsconfig.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.

    3. Review the following changes in direct dependencies. Learn more about Socket for GitHub.

      Diff Package Supply Chain
      Security
      Vulnerability Quality Maintenance License
      Addedoxfmt@​0.81.0941008796100

      View full report

    4. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit a584d4c6125821f90a9dc80e3bcce6df96be130b

      CommandStatusDurationResult
      nx run-many --target=test:e2e --parallel=1 --pr...✅ Succeeded1m 27sView ↗
      nx run-many --targets=build --exclude=examples/...✅ Succeeded2sView ↗
      nx affected --targets=test:eslint,test:sherif,t...✅ Succeeded3m 2sView ↗

      💡 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:10 UTC

    5. More templates

      @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@584

      commit: a584d4c

Sign in to join this conversation.