Skip to content

chore(oxfmt.config): adopt '@tanstack/oxfmt-config' and sort imports - #585

Open
sukvvon wants to merge 1 commit into
mainfrom
chore/adopt-tanstack-oxfmt-config
Open

sukvvon wants to merge 1 commit into
mainfrom
chore/adopt-tanstack-oxfmt-config

Conversation

@sukvvon

@sukvvon sukvvon commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

🎯 Changes

Adopt the shared @tanstack/oxfmt-config, and apply its import sorting across the repo.

  • package.json: add @tanstack/oxfmt-config to devDependencies.
  • oxfmt.config.ts: spread tanstackConfig.
    • Its semi, singleQuote, trailingComma, printWidth and sortPackageJson values match the ones they replace.
    • svelte: {} is kept.
    • ignorePatterns spreads the shared list and adds the repo-specific **/.nx/, **/docs and **/old-examples.
    • sortImports is now enabled. Its groups match import/order from @tanstack/eslint-config, and it does not keep blank lines between import groups.
  • Top-of-file directives followed directly by an import are now followed by a blank line, so sortImports keeps them at the top. These are // @ts-nocheck, // @ts-check, // @vitest-environment node and /** @jsxImportSource ... */, including those in Markdown code blocks.
  • Sort imports in the remaining files. No side-effect imports moved.
  • pnpm-lock.yaml: lockfile update for the dependency above.

✅ 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

  • Bug Fixes
    • Hotkey settings now display the title as the heading and the description as supporting text.
  • Style
    • Standardized import ordering and formatting across examples, documentation, and project code. These changes do not alter application behavior.
  • Chores
    • Updated the project’s formatting configuration to use shared settings.

@sukvvon
sukvvon requested a review from a team as a code owner December 2, 2026 01:46
@changeset-bot

changeset-bot Bot commented Dec 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c377178

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

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request reorders imports and adjusts blank-line spacing across examples, packages, documentation, and scripts. It updates the root formatter configuration and adds its preset dependency. HotkeyConfig also changes which prop appears in its heading and descriptive text.

Changes: Repository-wide import and formatting updates

Layer / File(s) Summary
Formatter setup and import organization
oxfmt.config.ts, package.json, e2e/*, examples/*, packages/*, scripts/*
Imports and spacing are reorganized across the repository. The root formatter config now spreads the TanStack preset and adds ignore patterns for **/.nx/, **/docs, and **/old-examples. The root package adds @tanstack/oxfmt-config version 0.1.0.

Hotkey configuration text

Layer / File(s) Summary
Display title and description
packages/devtools/src/tabs/hotkey-config.tsx
HotkeyConfig now displays props.title in the heading and props.description in the paragraph.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Suggested reviewers: alemtuzlak

Merge Risk: Minimal · up to c3771 · assessed changes only

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

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: adopting '@tanstack/oxfmt-config' in oxfmt.config.ts and sorting imports. The raw summary and objectives confirm both parts. The title uses the 'chore' prefix and a co…
Description check Passed The description follows the template. It has the Changes section with a clear explanation of the shared config adoption, import sorting, directive handling, and lockfile update. The Checklist and Rele…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: adopting '@tanstack/oxfmt-config' in oxfmt.config.ts and sorting imports. The raw summary and objectives confirm both parts. The title uses the 'chore' prefix and a concise scope, and it matches the changeset.

Full details: Description check

Explanation

The description follows the template. It has the Changes section with a clear explanation of the shared config adoption, import sorting, directive handling, and lockfile update. The Checklist and Release Impact sections are present. The author marked the change as docs/CI/dev-only. Two checklist items are unchecked: the local test run and the AI-code understanding item. The template does not require these to be checked, so the description is mostly complete.

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

Warning

Some tools did not complete. Review the errors below.

Biome (2.6.6)

e2e/apps/angular/src/main.ts

Biome could not lint this file: nested root configuration. Check the repository's Biome configuration and plugins.

e2e/apps/preact/src/index.tsx

Biome could not lint this file: nested root configuration. Check the repository's Biome configuration and plugins.

e2e/apps/preact/vite.config.ts

Biome could not lint this file: nested root configuration. Check the repository's Biome configuration and plugins.

  • 212 others

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 6e986de and c377178.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 249

  • e2e/apps/angular/src/main.ts
  • e2e/apps/preact/src/index.tsx
  • e2e/apps/preact/vite.config.ts
  • e2e/apps/react-cloudflare/src/routeTree.gen.ts
  • e2e/apps/react-cloudflare/src/router.tsx
  • e2e/apps/react-cloudflare/src/routes/__root.tsx
  • e2e/apps/react-cloudflare/src/routes/emit-server-ping.ts
  • e2e/apps/react-cloudflare/vite.config.ts
  • e2e/apps/react-nitro/src/routeTree.gen.ts
  • e2e/apps/react-nitro/src/router.tsx
  • e2e/apps/react-nitro/src/routes/__root.tsx
  • e2e/apps/react-nitro/src/routes/emit-server-ping.ts
  • e2e/apps/react-nitro/vite.config.ts
  • e2e/apps/react-start/src/routeTree.gen.ts
  • e2e/apps/react-start/src/router.tsx
  • e2e/apps/react-start/src/routes/__root.tsx
  • e2e/apps/react-start/src/routes/emit-server-ping.ts
  • e2e/apps/react-start/vite.config.ts
  • e2e/apps/react-vite/src/main.tsx
  • e2e/apps/react-vite/vite.config.ts
  • e2e/apps/solid/src/index.tsx
  • e2e/apps/solid/vite.config.ts
  • e2e/apps/solid1/src/index.tsx
  • e2e/apps/solid1/vite.config.ts
  • e2e/apps/vue/src/App.vue
  • e2e/apps/vue/src/main.ts
  • e2e/apps/vue/vite.config.ts
  • e2e/helpers/src/event-probe/plugin.tsx
  • e2e/helpers/src/page-objects/devtools.ts
  • examples/angular/a11y-devtools/src/app/app.ts
  • examples/angular/a11y-devtools/src/app/counter.ts
  • examples/angular/a11y-devtools/src/app/devtools/custom-devtools-panel.ts
  • examples/angular/a11y-devtools/src/main.ts
  • examples/angular/basic/src/app/app.ts
  • examples/angular/basic/src/app/counter.ts
  • examples/angular/basic/src/app/devtools/custom-devtools-panel.ts
  • examples/angular/basic/src/main.ts
  • examples/angular/panel/src/app/app.ts
  • examples/angular/panel/src/app/counter.ts
  • examples/angular/panel/src/app/devtools/custom-devtools-panel.ts
  • examples/angular/panel/src/main.ts
  • examples/angular/with-devtools/src/app/app.ts
  • examples/angular/with-devtools/src/app/counter.ts
  • examples/angular/with-devtools/src/app/devtools/custom-devtools-panel.ts
  • examples/angular/with-devtools/src/main.ts
  • examples/preact/basic/src/button-with-props-only.tsx
  • examples/preact/basic/src/index.tsx
  • examples/preact/basic/vite.config.ts
  • examples/preact/custom-devtools/src/App.tsx
  • examples/preact/custom-devtools/src/index.tsx
  • examples/preact/custom-devtools/vite.config.ts
  • examples/react-rspack/rspack.config.mjs
  • examples/react-rspack/src/main.tsx
  • examples/react/a11y-devtools/src/index.tsx
  • examples/react/a11y-devtools/vite.config.ts
  • examples/react/basic/src/index.tsx
  • examples/react/basic/src/setup.tsx
  • examples/react/basic/src/webmcp-proof.tsx
  • examples/react/basic/vite.config.ts
  • examples/react/bundling-repro/README.md
  • examples/react/bundling-repro/src/components/Header.tsx
  • examples/react/bundling-repro/src/components/demo-AIAssistant.tsx
  • examples/react/bundling-repro/src/components/demo-GuitarRecommendation.tsx
  • examples/react/bundling-repro/src/feat/demo-ai-hook.ts
  • examples/react/bundling-repro/src/feat/demo-store-devtools.tsx
  • examples/react/bundling-repro/src/routeTree.gen.ts
  • examples/react/bundling-repro/src/router.tsx
  • examples/react/bundling-repro/src/routes/__root.tsx
  • examples/react/bundling-repro/src/routes/demo/ai-chat.tsx
  • examples/react/bundling-repro/src/routes/demo/ai-image.tsx
  • examples/react/bundling-repro/src/routes/demo/ai-structured.tsx
  • examples/react/bundling-repro/src/routes/demo/api.ai.chat.ts
  • examples/react/bundling-repro/src/routes/demo/api.ai.image.ts
  • examples/react/bundling-repro/src/routes/demo/api.ai.structured.ts
  • examples/react/bundling-repro/src/routes/demo/api.ai.transcription.ts
  • examples/react/bundling-repro/src/routes/demo/api.ai.tts.ts
  • examples/react/bundling-repro/src/routes/demo/guitars/$guitarId.tsx
  • examples/react/bundling-repro/src/routes/demo/guitars/index.tsx
  • examples/react/bundling-repro/src/routes/demo/start.api-request.tsx
  • examples/react/bundling-repro/src/routes/demo/start.server-funcs.tsx
  • examples/react/bundling-repro/src/routes/demo/start.ssr.spa-mode.tsx
  • examples/react/bundling-repro/src/routes/demo/store.tsx
  • examples/react/bundling-repro/src/routes/demo/tanstack-query.tsx
  • examples/react/bundling-repro/vite.config.ts
  • examples/react/custom-devtools/src/App.tsx
  • examples/react/custom-devtools/src/index.tsx
  • examples/react/drizzle/src/routes/__root.tsx
  • examples/react/drizzle/src/routes/index.tsx
  • examples/react/drizzle/vite.config.ts
  • examples/react/https/src/index.tsx
  • examples/react/https/src/setup.tsx
  • examples/react/https/vite.config.ts
  • examples/react/start-cloudflare/src/routeTree.gen.ts
  • examples/react/start-cloudflare/src/routes/__root.tsx
  • examples/react/start-cloudflare/src/routes/index.tsx
  • examples/react/start-cloudflare/vite.config.ts
  • examples/react/start-nitro/src/routeTree.gen.ts
  • examples/react/start-nitro/src/routes/__root.tsx
  • examples/react/start-nitro/src/routes/index.tsx
  • examples/react/start-nitro/vite.config.ts
  • examples/react/start/README.md
  • examples/react/start/src/components/Header.tsx
  • examples/react/start/src/routeTree.gen.ts
  • examples/react/start/src/router.tsx
  • examples/react/start/src/routes/__root.tsx
  • examples/react/start/src/routes/demo/start.api-request.tsx
  • examples/react/start/src/routes/demo/start.server-funcs.tsx
  • examples/react/start/src/routes/demo/start.ssr.spa-mode.tsx
  • examples/react/start/vite.config.ts
  • examples/react/time-travel/src/setup.tsx
  • examples/react/time-travel/vite.config.ts
  • examples/solid/a11y-devtools/src/index.tsx
  • examples/solid/a11y-devtools/vite.config.ts
  • examples/solid/basic/src/index.tsx
  • examples/solid/basic/src/setup.tsx
  • examples/solid/basic/vite.config.ts
  • examples/solid/devtools-ui/src/index.tsx
  • examples/solid/devtools-ui/vite.config.ts
  • examples/solid/start/src/app.tsx
  • examples/vue/basic/src/App.vue
  • examples/vue/basic/src/Post.vue
  • examples/vue/basic/src/Posts.vue
  • examples/vue/basic/src/main.ts
  • examples/vue/basic/vite.config.ts
  • oxfmt.config.ts
  • package.json
  • packages/angular-devtools/src/devtools.ts
  • packages/angular-devtools/vite.config.ts
  • packages/devtools-a11y/src/angular/A11yDevtools.ts
  • packages/devtools-a11y/src/angular/production/A11yDevtools.ts
  • packages/devtools-a11y/src/core/components/IssueCard.tsx
  • packages/devtools-a11y/src/core/components/IssueList.tsx
  • packages/devtools-a11y/src/core/components/Settings.tsx
  • packages/devtools-a11y/src/core/components/Shell.tsx
  • packages/devtools-a11y/src/core/components/index.tsx
  • packages/devtools-a11y/src/core/contexts/allyContext.tsx
  • packages/devtools-a11y/src/core/styles/severity-theme.ts
  • packages/devtools-a11y/src/core/styles/styles.ts
  • packages/devtools-a11y/src/core/utils/ally-audit.utils.ts
  • packages/devtools-a11y/src/core/utils/custom-audit.utils.ts
  • packages/devtools-a11y/src/core/utils/ui.utils.ts
  • packages/devtools-a11y/src/react/A11yDevtools.ts
  • packages/devtools-a11y/src/react/production/A11yDevtools.ts
  • packages/devtools-a11y/src/solid/A11yDevtools.ts
  • packages/devtools-a11y/src/solid/production/A11yDevtools.ts
  • packages/devtools-a11y/tests/export.test.ts
  • packages/devtools-a11y/tests/theme.test.ts
  • packages/devtools-a11y/vite.config.ts
  • packages/devtools-bundler-core/src/enhance-logs.ts
  • packages/devtools-bundler-core/src/inject-plugin.ts
  • packages/devtools-bundler-core/src/inject-source.ts
  • packages/devtools-bundler-core/src/package-manager.ts
  • packages/devtools-bundler-core/src/types.ts
  • packages/devtools-bundler-core/src/utils.test.ts
  • packages/devtools-bundler-core/vite.config.ts
  • packages/devtools-client/vite.config.ts
  • packages/devtools-rspack/src/plugin.ts
  • packages/devtools-rspack/vite.config.ts
  • packages/devtools-ui/scripts/check-font-assets.mjs
  • packages/devtools-ui/src/components/button.tsx
  • packages/devtools-ui/src/components/theme.tsx
  • packages/devtools-ui/src/components/tree.tsx
  • packages/devtools-ui/src/styles/use-styles.ts
  • packages/devtools-ui/tests/deep-keys.ts
  • packages/devtools-ui/tests/index.test.ts
  • packages/devtools-ui/tests/semantic-theme.test.ts
  • packages/devtools-ui/tests/tree.tsx
  • packages/devtools-ui/vite.config.ts
  • packages/devtools-utils/skills/devtools-framework-adapters/SKILL.md
  • packages/devtools-utils/skills/devtools-framework-adapters/references/preact.md
  • packages/devtools-utils/skills/devtools-framework-adapters/references/solid.md
  • packages/devtools-utils/src/preact/plugin.tsx
  • packages/devtools-utils/src/react/plugin.tsx
  • packages/devtools-utils/src/solid/class-mount-impl.tsx
  • packages/devtools-utils/src/solid/class.test.tsx
  • packages/devtools-utils/src/solid/class.ts
  • packages/devtools-utils/src/solid/panel.tsx
  • packages/devtools-utils/src/solid/plugin.tsx
  • packages/devtools-utils/src/svelte/panel.ts
  • packages/devtools-utils/vite.config.angular.ts
  • packages/devtools-utils/vite.config.preact.ts
  • packages/devtools-utils/vite.config.solid-class.ts
  • packages/devtools-utils/vite.config.solid.ts
  • packages/devtools-utils/vite.config.svelte.ts
  • packages/devtools-utils/vite.config.ts
  • packages/devtools-utils/vite.config.vue.ts
  • packages/devtools-vite/src/plugin.ts
  • packages/devtools-vite/tests/index.test.ts
  • packages/devtools-vite/tests/inject-source-order.test.ts
  • packages/devtools-vite/vite.config.ts
  • packages/devtools-webmcp/src/index.ts
  • packages/devtools-webmcp/vite.config.ts
  • packages/devtools/skills/devtools-app-setup/SKILL.md
  • packages/devtools/skills/devtools-plugin-panel/SKILL.md
  • packages/devtools/src/components/content-panel.tsx
  • packages/devtools/src/components/main-panel.tsx
  • packages/devtools/src/components/plugin-workspace.tsx
  • packages/devtools/src/components/plugins-strip.tsx
  • packages/devtools/src/components/source-inspector.tsx
  • packages/devtools/src/components/tab-content.tsx
  • packages/devtools/src/components/trigger.tsx
  • packages/devtools/src/components/workbench-header.tsx
  • packages/devtools/src/components/workbench-secondary-tabs.tsx
  • packages/devtools/src/context/devtools-context.tsx
  • packages/devtools/src/context/pip-context.tsx
  • packages/devtools/src/core.ts
  • packages/devtools/src/devtools.tsx
  • packages/devtools/src/mount-impl.tsx
  • packages/devtools/src/styles/use-styles.ts
  • packages/devtools/src/tabs/hotkey-config.tsx
  • packages/devtools/src/tabs/index.tsx
  • packages/devtools/src/tabs/marketplace/plugin-card.tsx
  • packages/devtools/src/tabs/marketplace/plugin-section.tsx
  • packages/devtools/src/tabs/marketplace/plugin-utils.test.ts
  • packages/devtools/src/tabs/marketplace/settings-panel.tsx
  • packages/devtools/src/tabs/plugin-marketplace.tsx
  • packages/devtools/src/tabs/seo-tab/index.tsx
  • packages/devtools/src/tabs/seo-tab/social-previews.tsx
  • packages/devtools/src/tabs/settings-tab.test.tsx
  • packages/devtools/src/tabs/settings-tab.tsx
  • packages/devtools/src/utils/create-sortable.ts
  • packages/devtools/src/utils/hotkey.ts
  • packages/devtools/tests/index.test.ts
  • packages/devtools/tests/seo-workbench.test.tsx
  • packages/devtools/tests/workbench-secondary-tabs.test.tsx
  • packages/devtools/tests/workbench.test.tsx
  • packages/devtools/vite.config.ts
  • packages/event-bus-client/src/index.ts
  • packages/event-bus-client/tests/index.test.ts
  • packages/event-bus-client/tests/noop.test.ts
  • packages/event-bus-client/vite.config.ts
  • packages/event-bus/vite.config.ts
  • packages/preact-devtools/README.md
  • packages/preact-devtools/src/devtools.tsx
  • packages/preact-devtools/tests/devtools.test.tsx
  • packages/preact-devtools/vite.config.ts
  • packages/react-devtools/README.md
  • packages/react-devtools/src/devtools.tsx
  • packages/react-devtools/tests/devtools.test.tsx
  • packages/react-devtools/vite.config.ts
  • packages/solid-devtools/vite.config.ts
  • packages/svelte-devtools/src/devtools.ts
  • packages/svelte-devtools/src/types.ts
  • packages/svelte-devtools/vite.config.ts
  • packages/vue-devtools/src/types.ts
  • packages/vue-devtools/src/vue-devtools.vue
  • packages/vue-devtools/vite.config.ts
  • scripts/tsup-solid-v2.ts
  • scripts/verify-links.ts
Files with no reviewable changes: 25

  • e2e/apps/react-cloudflare/src/router.tsx
  • e2e/apps/react-nitro/src/router.tsx
  • e2e/apps/react-start/src/router.tsx
  • e2e/apps/vue/src/main.ts
  • examples/preact/custom-devtools/src/App.tsx
  • examples/react/bundling-repro/src/feat/demo-store-devtools.tsx
  • examples/react/bundling-repro/src/router.tsx
  • examples/react/bundling-repro/src/routes/demo/guitars/$guitarId.tsx
  • examples/react/bundling-repro/src/routes/demo/guitars/index.tsx
  • examples/react/bundling-repro/src/routes/demo/start.api-request.tsx
  • examples/react/bundling-repro/src/routes/demo/store.tsx
  • examples/react/custom-devtools/src/App.tsx
  • examples/react/start/src/router.tsx
  • packages/devtools-a11y/src/angular/A11yDevtools.ts
  • packages/devtools-a11y/src/angular/production/A11yDevtools.ts
  • packages/devtools-a11y/src/core/utils/ally-audit.utils.ts
  • packages/devtools-a11y/src/core/utils/custom-audit.utils.ts
  • packages/devtools-a11y/src/core/utils/ui.utils.ts
  • packages/devtools-a11y/src/react/A11yDevtools.ts
  • packages/devtools-a11y/src/react/production/A11yDevtools.ts
  • packages/devtools-a11y/src/solid/A11yDevtools.ts
  • packages/devtools-a11y/src/solid/production/A11yDevtools.ts
  • packages/devtools-a11y/tests/export.test.ts
  • packages/devtools-ui/tests/deep-keys.ts
  • packages/devtools/src/utils/hotkey.ts

@socket-security

Copy link
Copy Markdown

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​tanstack/​oxfmt-config@​0.1.0711006391100

View full report

@sukvvon sukvvon self-assigned this Dec 2, 2026

This branch has not been deployed

No deployments
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