Repository navigation
chore: use oxfmt and oxlint in 42-x-y - #51435
Merged
Merged
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).
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
One-time application of the new linting and formatting rules to the 42-x-y codebase: - yarn format (oxfmt --write) over all JS/TS sources - oxlint --fix to restore curly braces where oxfmt removed them - Prefix unused parameters with _ (no-unused-vars) - Add eslint-disable-next-line comments for intentional patterns: - prefer-promise-reject-errors in desktop-capturer.ts - no-throw-literal in preload.ts Pure formatting and lint suppression; no behavioral changes.
ckerr
force-pushed
the
chore/oxfmt-oxlint--42-x-y
branch
from
May 1, 2026 21:25
6c2f40b to
e16ba1e
Compare
ckerr
marked this pull request as ready for review
May 1, 2026 23:59
MarshallOfSound
approved these changes
May 2, 2026
|
No Release Notes |
5 tasks done
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 42-x-y. See that PR for details.
Manually backport #50692 to 42-x-y. See that PR for details.
Partial fix for #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 42-x-y by copying the oxfmt/oxlint tooling from
main.All reviews welcomed, CC @MarshallOfSound, @nikwen as stakeholders.
Checklist
npm testpassesRelease Notes
Notes: none.