Open
Conversation
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).
This was referenced May 5, 2026
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
a0c07c4 to
ef754df
Compare
Run oxfmt --write and oxlint --fix across all JS/TS sources to apply the new formatting and lint rules from the previous commit.
ef754df to
d349d67
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
npm testpassesRelease Notes
Notes: none.