Repository navigation
build: replace eslint and prettier with oxlint and oxfmt - #277
Merged
Merged
Conversation
Lint with oxlint's correctness, suspicious and perf categories plus a few overrides, with type-aware rules via oxlint-tsgolint. Format with oxfmt, which also sorts imports and package.json keys, so sort-package-json goes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
will-molloy
marked this pull request as ready for review
November 27, 2026 13:51
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #277 +/- ##
==========================================
+ Coverage 76.47% 78.78% +2.31%
==========================================
Files 2 2
Lines 34 33 -1
Branches 4 4
==========================================
Hits 26 26
+ Misses 7 6 -1
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The separate group kept typescript-eslint lag from blocking the js group, and oxlint-tsgolint ships its own TypeScript. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
🤖 Drafted by Claude Code.
Closes #276.
Lint and format with oxlint and Oxfmt instead of ESLint and Prettier.
Linting and the format check run about 9x faster locally, dropping from about 3.2s to 0.37s.
ESLint's plugins have often held back dependency upgrades, because each one lags new ESLint and TypeScript majors.
Currently
eslint-plugin-react,eslint-plugin-importandeslint-plugin-jsx-a11yonly support ESLint up to 9, which keeps ESLint 10 from landing in #272.oxlint builds those rule sets in, so upgrades should depend on one tool instead of a dozen plugins.
Proposed changes
correctness,suspiciousandperfcategories, with only a few rule overridesoxlint-tsgolintno-console,import/first,import/no-duplicates,import/no-namespaceandreact/only-export-componentsfrom the old configimport/orderpackage.jsonkeys, replacingsort-package-jsoninverify:alljs/ts/tsx/cssandpackage.json, so workflows, Markdown andCHANGELOG.mdkeep their current formattingpnpm format --checkas its ownverify:allstep, separate fromlintoxlint-tsgolintships its own TypeScriptstylelint-prettierdefineConfigfromvitest/configinstead of using the triple-slash vitest referenceNotes
typescript-eslintstrictTypeCheckedandstylisticTypeCheckedno-unused-varsstill flags them)package.jsonkeys differently fromsort-package-json, sorepositorymoves afterlicenseverify:allon this branch🤖 Generated with Claude Code