Skip to content

chore: use oxfmt and oxlint in 40-x-y#51500

Open
ckerr wants to merge 2 commits into40-x-yfrom
chore/oxfmt-oxlint--40-x-y
Open

chore: use oxfmt and oxlint in 40-x-y#51500
ckerr wants to merge 2 commits into40-x-yfrom
chore/oxfmt-oxlint--40-x-y

Conversation

@ckerr
Copy link
Copy Markdown
Member

@ckerr ckerr commented May 5, 2026

Description of Change

Manually backport #50691 to 40-x-y. See that PR for details.
Manually backport #50692 to 40-x-y. See that PR for details.
Fixes #51429 .

The project's old and new formatting styles are not 100% consistent with each other, so recently we've had several trops/backporrts where a human has to manually check out the backport -> run the formatter -> push up the update. This PR fixes the issue for 40-x-y by copying the oxfmt/oxlint tooling from main. Since 42-x-y was already migrated by #51435 and 41-x-y by #51443, this ticket also closes #51429.

All reviews welcomed, CC @MarshallOfSound, @nikwen as stakeholders.

Checklist

Release Notes

Notes: none.

Replace ESLint and its plugin ecosystem with oxlint (oxc.rs).
Add oxfmt alongside oxlint for JS/TS formatting and import sorting.

- Consolidate root .eslintrc.json plus 13 nested configs into .oxlintrc.json
- script/lint.js spawns oxlint binary directly instead of ESLint Node API
- Per-process no-restricted-imports rules preserved as oxlintrc overrides
- mocha/no-exclusive-tests replaced by in-repo plugin (no-only-tests.mjs)
- docs ESLint pass replaced by inline node: protocol check in lint.js
- .oxfmtrc.json matching repo style (single quotes, semicolons, 2-space)
- yarn lint:fmt (oxfmt --check) chained into yarn lint
- yarn format (oxfmt --write) for local fixup
- lint-staged runs oxfmt --write on staged JS/TS files

This commit contains only rule/tooling infrastructure changes and is
intended to be cherry-picked to other maintenance branches, where
formatting and lint fixes can be applied separately.

Manual backport of e1af67c698 (#50691) and
3c7fd34f47 (#50692).
@socket-security
Copy link
Copy Markdown

socket-security Bot commented May 5, 2026

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedwebpack@​5.95.0 ⏵ 5.106.276 -8100 +293 +197100
Addedoxfmt@​0.42.0901008995100
Addedoxlint@​1.62.0991009196100

View full report

@ckerr ckerr changed the title Chore/oxfmt oxlint 40 x y chore: use oxfmt and oxlint in 40-x-y May 5, 2026
@ckerr ckerr force-pushed the chore/oxfmt-oxlint--40-x-y branch 5 times, most recently from a0c07c4 to ef754df Compare May 5, 2026 18:51
Run oxfmt --write and oxlint --fix across all JS/TS sources to
apply the new formatting and lint rules from the previous commit.
@ckerr ckerr force-pushed the chore/oxfmt-oxlint--40-x-y branch from ef754df to d349d67 Compare May 5, 2026 19:10
@ckerr ckerr requested a review from MarshallOfSound May 6, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant