Repository navigation
Done
Labels
Milestone
Description
Part of #554. Comes from #655: its adopt rule passed, and the maintainer ruled the swap on 2026-11-14. Related: #649.
Benchmark
| Field | Value |
|---|---|
| Metric | (1) Files that bun fmt formats differently from Prettier on the tracked-file gate list, exact count. (2) bun run check:ci wall time, median of 5, in seconds. (3) The bun run format step in quality-lint.yml, median of 5 CI runs, in seconds. It is a recorded value, with no gate. |
| Before | From the #655 Measured comment, laptop Mac17,6, Bun 1.4.4, cfac48d87: (1) 0 of 2,541. (2) 90.34 s, range 89.47–92.59 s, n = 5, with the Prettier gate. The gate command alone took 10.61 s, and bun fmt --check took 0.15 s. (3) Not measured yet. |
| After | From the 2026-11-16 Measured comment, b87090be4: (1) 0 of 2,582. (2) 85.54 s, range 85.08–86.30 s, n = 5, against a re-taken before of 97.24 s. The gate command alone: 0.15 s, against a re-taken 10.82 s. (3) Not read yet. |
| Condition | The #655 laptop and method: a clean clone of the swap commit, n = 5 after one discarded warm-up, the 1-minute load average under 6 at each start. |
| Pass rule | (1) stays 0 on the swap commit. (2) falls by at least 9.03 s, which is 10 % of the 90.34 s before. The positive control still matches Prettier byte for byte, including the Tailwind class sort. |
| Rollback | Revert the one swap commit. Prettier stays installed until a later change removes it. |
| Owner | Agent in the repo: Steps 1 to 4 and the Measured comment. The maintainer pushes. |
| Claim | "The docs.plus format check fell from 10.61 s to s on one laptop (median of 5)." |
Steps
- Re-take (1) on the current
mainbefore the change. Benchmark bun fmt against Prettier #655 measuredcfac48d87, and files have changed since. - Change the 3 call sites in one commit, as Benchmark bun fmt against Prettier #655 §If adopted later says:
- the
formatandformat:fixscripts in the rootpackage.json - the
prettier --writeentries in.lintstagedrc.js - the format gate in
scripts/check-ci.ts(theformatsection, from line 166) quality-lint.ymlcallsbun run format, so the script change covers it.
- the
- Keep
prettierandprettier-plugin-tailwindcssinstalled in this change. - Post a Measured comment with (1) and (2) from the laptop. Post (3) after 5 CI runs. Record it with no gate. Also time lint-staged on one staged change, because Benchmark bun fmt against Prettier #655 did not measure it.
Status (2026-11-16)
Steps 1 to 3 are done (b87090be4), and the pass rule is met. The docs follow-up is 0cc62066a. Left:
- Post (3), as a recorded value. Then close.
- The maintainer rules once on the Prettier lines in
CLAUDE.md:82andAGENTS.md:160. Both should namebun fmtnow.
Not in v2.3.7: removing prettier and prettier-plugin-tailwindcss, with its call sites. Those are the packages/supabase types script, scripts/check-quickstart-example.ts:69 and :95, and the .vscode Prettier extension entries. It is a separate change with its own risk, and this issue does not need it to close.
Acceptance
- (1) is 0 on the swap commit, and the positive control matches.
- The 3 call sites change in one commit.
- A Measured comment holds (1), (2) and (3), with the pass rule judged.
Activity
build: swap the format gate from Prettier to bun fmt
HMarzban commentedon Nov 16, 2026
Measured, 2026-11-16
Laptop Mac17,6, Bun 1.4.4,
5fc138dadplus the swap diff, now commitb87090be4. The #655 method, in a scratch clone: n = 5 after 1 discarded warm-up,/usr/bin/time -l, the 1-minute load average under 6 at each start.bun fmtformats differentlybun run check:cibun run format, laptop.tsx(ESLint, then format)check:cirun printed PASS, with bothbuild:cigates passing and the extension matrix at "none".bun fmtselects the same 2,582. The doctor sends 0 files to Prettier.git add. Only its two tasks were timed. The commits after the swap ran it for real, withbun fmt.Pass rule: met. (1) stays 0. (2) fell by 11.70 s, above the 9.03 s line and above 10 % of the new before (9.72 s). The positive control matches.
Claim: "The docs.plus format check fell from 10.82 s to 0.15 s on one laptop (median of 5), 98 % less time."
Left:
bun run formatCI step, median of 5 runs, after the push. Agent reads the runs.CONTRIBUTING.md:404-405andpackages/eslint-config/README.md:65still say Prettier. Agent, in a follow-up change.prettierandprettier-plugin-tailwindcssafter (3). Agent, in a later change.packages/supabasetypesstill callsbunx prettier.docs: name bun fmt and bun check in the contributor and package docs
HMarzban commentedon Nov 16, 2026
Measured, 2026-11-16
Docs follow-up, commit
0cc62066a.Docs follow-up from the Left list. This is a docs-only change, so nothing was timed.
CONTRIBUTING.md: the Formatting section, the pre-commit line, and thecheck:fix,formatandformat:fixrows now namebun fmt.packages/eslint-config/README.md:checknow listsbun fmt --check, andcheck:pushsays it skips it. The feature row now nameseslint-config-prettier, the packageindex.jsimports..prettierignore:19comment now namesbun fmt.bun fmtreads.prettierrc.json. I checked this.bun fmt --find-config-pathfinds the config through the rootpackage.json. A stdin probe appliedsingleQuoteandsemi: falsefrom that file.bun fmt --checkon the touched files exits 0.bun run check:agent-docsexits 0.Left:
bun run formatCI step, median of 5 runs, after the push. Agent reads the runs..cursor/docs/scripts-naming-convention.md:171,:177and:313still say Prettier. This file needs a maintainer ruling. Owner: maintainer, then an agent makes the edit.AGENTS.md:160lists 'Prettier' as a gate, andCLAUDE.md:82says Prettier checks the house skills. Owner: agent, after the maintainer agrees to edit those files.packages/supabasetypesscript, andscripts/check-quickstart-example.ts:69and:95. Owner: agent, in the later change that removesprettierandprettier-plugin-tailwindcss..vscode/README.mdand.vscode/extensions.jsonstill name the Prettier editor extension. That is still true. Owner: agent, in the same removal change.docs(changelog): record the v2.3.7 work of 2026-11-16
HMarzban commentedon Nov 16, 2026
Review, 2026-11-16 (maintainer approved).
CLAUDE.md:82andAGENTS.md:160tobun fmt.HMarzban commentedon Nov 24, 2026
Measured, 2026-11-24: metric (3) CI
bun fmt --check .durationQuestion. How long does
bun fmt --check .take in CI across5clean runs afterb87090be4?Setup. GitHub-hosted
ubuntu-latestrunner, workflowprod.docs.plus.yml, joblint / 🔍 Lint & Format, step🔍 Lint, format & styles(shared acrossquality-lint.yml).Method. Read the exact ISO timestamps of
$ bun fmt --check .andAll matched files use Prettier code style!from the job logs (n = 5on Bun1.4.4;$ stylelintstarts6to8 mslater).Result.
bun fmtduration (s)4387652449506f61ee441.4.413:32:01.667Z -> 13:32:02.141Z0.4743931900751dcd69569b1.4.418:44:39.699Z -> 18:44:39.987Z0.29439391178805aa56e1d11.4.419:26:00.564Z -> 19:26:00.931Z0.374402590421528037ba771.4.405:42:49.738Z -> 05:42:50.199Z0.4644041325574afd06574b1.4.407:47:30.724Z -> 07:47:31.091Z0.371.4.4(n = 5): median0.37 s, range0.29to0.47 s.45132328837(e4d36ae0f, Bun1.4.5) took0.29 s(07:37:17.142Z -> 07:37:17.427Z).prettier --checkinside the combined step (not logged separately).Verdict: Keep. Metrics (1), (2), and (3) are recorded, and the pass rule is met. Updating Prettier lines in
CLAUDE.md:82,AGENTS.md:160, and.cursor/docs/scripts-naming-convention.mdstays a separate docs cleanup.Closing #795 now. No action needed.
docs: add Bun 1.4.x benchmark report