Skip to content

chore: migrate to oxfmt#624

Open
B4nan wants to merge 3 commits intomasterfrom
chore/migrate-to-oxfmt
Open

chore: migrate to oxfmt#624
B4nan wants to merge 3 commits intomasterfrom
chore/migrate-to-oxfmt

Conversation

@B4nan
Copy link
Copy Markdown
Member

@B4nan B4nan commented Apr 28, 2026

Summary

Replaces ad-hoc formatting with oxfmt, matching the toolchain in apify-storage-local-js, apify-core, apify-web, and crawlee v4.

Stacked on top of #623 (eslint→oxlint migration). Will be retargeted to master after the chain merges.

Commits

  • chore: add oxfmt tooling — adds oxfmt 0.46.0 devDep, .oxfmtrc.json (4-space tabs, single quotes, 120 col), format / format:check scripts, and wires oxfmt --write into lint-staged
  • chore: apply oxfmt formatting — pure oxfmt --write reformat across all 67 modified files; one directive move from a trailing // eslint-disable-line to // eslint-disable-next-line above a for-in loop (oxfmt split the trailing comment which made it apply to the wrong line)
  • ci: add format-check job — adds format-check job to test_and_release.yaml and gates publish on it

Test plan

  • pnpm lint — clean
  • pnpm format:check — clean
  • pnpm test — 459/459 passing
  • pnpm build — all 15 packages built

Follow-up

Once this lands, add the reformat commit SHA to .git-blame-ignore-revs.

@B4nan B4nan added the adhoc Ad-hoc unplanned task added during the sprint. label Apr 28, 2026
@B4nan B4nan force-pushed the chore/migrate-to-oxlint branch from ffdc7aa to e672ad1 Compare April 29, 2026 08:47
@B4nan B4nan force-pushed the chore/migrate-to-oxfmt branch from a266d0c to ba9de19 Compare April 29, 2026 08:48
@B4nan B4nan force-pushed the chore/migrate-to-oxlint branch from e672ad1 to 033d72f Compare April 29, 2026 08:57
@B4nan B4nan force-pushed the chore/migrate-to-oxfmt branch from ba9de19 to 4ca03b8 Compare April 29, 2026 08:58
@B4nan B4nan force-pushed the chore/migrate-to-oxlint branch from 033d72f to a60c280 Compare April 29, 2026 09:09
@B4nan B4nan force-pushed the chore/migrate-to-oxfmt branch from 4ca03b8 to 26d3237 Compare April 29, 2026 09:09
@B4nan B4nan force-pushed the chore/migrate-to-oxlint branch from a60c280 to bc21bd5 Compare April 29, 2026 09:55
@B4nan B4nan force-pushed the chore/migrate-to-oxfmt branch from 26d3237 to 5285134 Compare April 29, 2026 09:56
@B4nan B4nan force-pushed the chore/migrate-to-oxlint branch 2 times, most recently from 6898006 to c8e3902 Compare April 29, 2026 12:11
Base automatically changed from chore/migrate-to-oxlint to master April 29, 2026 12:13
B4nan added 3 commits April 29, 2026 14:14
Adds the oxfmt formatter (devDep + .oxfmtrc.json), `format` /
`format:check` scripts, and wires `oxfmt --write` into lint-staged so
new commits stay formatted. The CI format-check job and the actual
reformat are added in follow-up commits.
Run `oxfmt --write` across the whole repo. Pure formatting commit; no
behavior change. Folded in is one directive move from `// eslint-disable-line`
on the body of a `for-in` to `// eslint-disable-next-line` above the
loop, since oxfmt split the trailing comment onto the next line which
made it apply to the wrong statement.
Adds a `format-check` job that runs `pnpm format:check` (oxfmt) on every
PR and gates the publish step on it the same way as lint.
@B4nan B4nan force-pushed the chore/migrate-to-oxfmt branch from 5285134 to c1362bc Compare April 29, 2026 12:15
@github-actions github-actions Bot added this to the 139th sprint - Tooling team milestone Apr 29, 2026
@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants