🎯 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.
eslint.config.js: turn off import/order, so import order is left to Oxfmt's sortImports only. sort-imports stays on, because sortImports does not sort the members inside an import.
- 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#
🚀 Release Impact#
Summary by CodeRabbit#
- Bug Fixes
- Hotkey settings now show the title as the heading and the description as supporting text.
- Style
- Import ordering and formatting have been standardized across examples, documentation, and project code. No application behavior changes.
- Chores
- Updated the project’s formatting configuration to use shared settings.
coderabbitai[bot](GitHub profile, opens in a new tab) reviewed
Actionable comments#
7b64fd7d-3d90-41ce-bbba-28391b523a6fReviewing files that changed from the base of the PR and between c377178da6a6e9e39fc0bda4077109dc6af8b104 and 8e72be10e770b02cc19ecc4a820b92d5327b406a.
eslint.config.jsIncluded review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.