Alaister Young and Alaister Young
fcbdda8107
chore: migrate formatter from Prettier to oxfmt ( #53835 )
...
Migrate code formatting across the monorepo from Prettier to `oxfmt`
(`0.79.0`, pinned) for much faster formatting checks locally and in CI
while keeping code churn minimal (78 files total, 0.7% of the repo).
Studio's `@ianvs/prettier-plugin-sort-imports` ordering
(`<BUILTIN_MODULES>`, `<THIRD_PARTY_MODULES>`, blank line, then `@/` and
relative imports) is preserved via `oxfmt`'s native `sortImports`
override for `apps/studio/**/*.{js,jsx,ts,tsx}`.
### Performance (before vs after, uncached)
| Benchmark | Prettier (`3.8.x`) | oxfmt (`0.79.0`) | Speedup |
| --- | ---: | ---: | ---: |
| CI formatting step (`blacksmith-4vcpu-ubuntu-2404`, full repo) | `73s`
| **`7s`** | **~10×** |
| Local `apps/studio` JS/TS (`5,157` files) | `17.74s` | **`0.36s`** |
**~49×** |
| Local full monorepo (`11,131` files) | — | **`2.39s`** | — |
**Added:**
- `.oxfmtrc.jsonc` at repo root with Prettier-matching options,
`sortPackageJson: false`, the Studio `sortImports` override, and ignore
patterns migrated from `.prettierignore`
- `oxfmt` (`0.79.0` exact pin) in `pnpm-workspace.yaml` catalog and
workspace `devDependencies` / `dependencies`
- Shared `.agents/scripts/format_and_lint.sh` hook script and
`.agents/hooks.json` (used by both Claude Code and Antigravity)
**Changed:**
- Replaced `test:prettier` with `format:check` and switched `format` in
root `package.json` to `oxfmt`
- Updated `packages/api-types` (`codegen`,
`verify-production-types.mjs`), `apps/design-system` (`build:registry`),
`apps/docs` (`CodeSample.ts`, `generate-sitemap.ts`, `next.config.mjs`,
`spec/Makefile`), `apps/www` (`generate-sitemap.mjs`), and
`packages/build-icons` (`generateIconFiles.mjs`) from Prettier to
`oxfmt`
- Updated `.github/workflows/prettier.yml` (keeping the `format` job ID
intact), `.github/workflows/autofix_linters.yml`,
`.claude/settings.json`, `AGENTS.md`, `CONTRIBUTING.md`, and
`.github/copilot-instructions.md`
- Applied one-time `oxfmt` formatting pass in a separate commit (78
files: 30 `i18n/README.*.md` trailing spaces, 19 Studio files, 17 other
TS/TSX/generated types, 8 MD/MDX, 3 `package.json`, 2 example CSS files)
**Removed:**
- `prettier`, `@ianvs/prettier-plugin-sort-imports`, and
`prettier-plugin-sql-cst` from `devDependencies` (note: `.sql` files
were not part of the CI formatting glob; `eslint-config-prettier` is
kept for ESLint)
- `prettier.config.mjs`, `.prettierignore`, and
`.claude/scripts/format_and_lint.sh`
## To test
- Run `pnpm run format:check` and confirm it passes cleanly across all
matched files
- Run `pnpm --filter api-types test`, `pnpm --filter docs exec vitest
run features/directives/CodeSample.test.ts`, and `pnpm --filter www exec
vitest run generate-sitemap.test.ts`
- Edit an `apps/studio` file with out-of-order imports and run `pnpm run
format` to confirm builtin/third-party vs `@/`/relative grouping matches
prior behavior
- Check that the `Check Code Formatting` CI workflow passes on this PR
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com >
2026-11-24 12:51:31 +08:00
..
2026-11-04 07:57:38 -06:00
2026-11-04 07:57:38 -06:00
2026-11-18 08:01:54 -06:00
2026-11-04 07:57:38 -06:00
2026-11-04 07:57:38 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 07:59:57 -05:00
2026-10-16 07:59:57 -05:00
2026-11-23 16:43:51 -07:00
2026-11-11 08:37:14 -06:00
2026-10-26 08:08:08 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-04 07:57:38 -06:00
2026-11-18 08:17:57 -06:00
2026-11-04 07:57:03 -06:00
2026-10-16 07:59:57 -05:00
2026-11-04 07:57:38 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-23 09:10:29 -05:00
2026-11-04 07:57:38 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-23 16:43:51 -07:00
2026-11-18 08:17:57 -06:00
2026-10-23 14:04:41 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 08:07:21 -05:00
2026-11-18 08:17:57 -06:00
2026-10-23 09:10:29 -05:00
2026-10-16 08:07:21 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-04 07:57:38 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 08:07:21 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-23 08:45:04 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 08:07:21 -05:00
2026-10-26 08:08:08 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 08:07:21 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 08:07:21 -05:00
2026-10-16 08:07:21 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-04 07:57:03 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 08:19:53 -05:00
2026-11-24 12:51:31 +08:00
2026-11-18 08:01:54 -06:00
2026-10-16 08:19:53 -05:00
2026-11-18 08:17:57 -06:00
2026-10-16 08:19:53 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-27 08:32:33 -05:00
2026-10-16 08:19:53 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 08:19:53 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-23 08:45:04 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-23 08:45:04 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-23 16:43:51 -07:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 08:19:53 -05:00
2026-10-16 08:19:53 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 08:19:53 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-23 08:45:04 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 08:19:53 -05:00
2026-10-16 08:19:53 -05:00
2026-10-16 08:19:53 -05:00
2026-10-16 09:53:51 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-23 16:43:51 -07:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:53:51 -05:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:53:51 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-04 07:57:38 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-10-23 09:10:29 -05:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:53:51 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-04 07:57:38 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:53:51 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-23 16:43:51 -07:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:53:51 -05:00
2026-10-16 09:53:51 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:53:51 -05:00
2026-11-12 23:57:59 +00:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:54:00 -05:00
2026-10-16 09:54:00 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:54:00 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:54:00 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-23 08:45:04 -06:00
2026-10-16 09:54:00 -05:00
2026-10-16 09:54:00 -05:00
2026-10-26 15:54:14 +11:00
2026-10-16 09:54:00 -05:00
2026-10-16 09:54:00 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-10-27 08:32:33 -05:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:54:00 -05:00
2026-10-16 09:54:00 -05:00
2026-11-24 12:51:31 +08:00
2026-10-16 09:54:00 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:54:00 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:54:00 -05:00
2026-10-27 08:32:33 -05:00
2026-10-16 09:54:00 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:54:00 -05:00
2026-11-18 08:17:57 -06:00
2026-11-04 08:00:41 -06:00
2026-10-16 09:54:00 -05:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:54:00 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:54:00 -05:00
2026-11-18 08:01:54 -06:00
2026-11-04 08:00:41 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:54:00 -05:00
2026-11-23 13:20:26 +00:00
2026-11-18 08:17:57 -06:00
2026-11-04 08:00:41 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-09-09 17:10:55 -07:00
2026-10-26 08:08:08 -05:00
2026-11-18 08:01:54 -06:00
2026-11-24 12:51:31 +08:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-11 08:37:14 -06:00
2026-10-16 09:53:22 -05:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:53:22 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:53:22 -05:00
2026-11-18 08:17:57 -06:00
2026-06-24 16:36:23 +02:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-08-11 13:37:32 +10:00
2026-11-23 16:43:51 -07:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-04 07:57:38 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-04 07:57:38 -06:00
2026-10-16 09:53:22 -05:00
2026-10-16 09:53:22 -05:00
2026-11-11 08:37:14 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:53:22 -05:00
2026-10-16 09:53:22 -05:00
2026-10-16 09:53:22 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-10-26 08:08:08 -05:00
2026-11-04 08:00:41 -06:00
2026-10-16 09:53:22 -05:00
2026-10-16 09:53:22 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-19 11:27:04 +01:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:53:22 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-10-30 16:41:16 -07:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-06 14:18:02 -06:00
2026-10-16 09:52:51 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:52:51 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-10-21 15:17:18 +05:30
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:52:51 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:52:51 -05:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-19 11:27:04 +01:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:52:51 -05:00
2026-11-18 08:01:54 -06:00
2026-11-04 08:00:41 -06:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:52:51 -05:00
2026-10-16 09:52:51 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-10-16 09:52:51 -05:00
2026-11-18 08:01:54 -06:00
2026-09-02 14:37:33 -07:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-09-25 11:36:52 -07:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-04 08:00:41 -06:00
2026-10-02 19:26:31 +02:00
2026-11-18 08:01:54 -06:00
2026-10-16 09:52:51 -05:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-02 23:27:12 +00:00
2026-11-18 08:01:54 -06:00
2026-11-16 08:21:14 -06:00
2026-11-18 08:01:54 -06:00
2026-10-21 11:25:16 -04:00
2026-11-18 08:01:54 -06:00
2026-11-16 08:21:14 -06:00
2026-11-16 08:21:14 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:01:54 -06:00
2026-11-16 08:21:14 -06:00
2026-11-18 08:01:54 -06:00
2026-11-18 08:17:57 -06:00
2026-11-18 08:17:57 -06:00
2026-11-23 21:02:37 -07:00