Replace ESLint with oxlint 🦀⚡
Merged
WO
12d ago+458+458+012345678901234567890123456789-2770-2770-0123456789012345678901234567890123456789
Replaces ESLint with Oxlint 1.94.0 and brings in TypeScript 7 from #101. CI generates Next.js route types before running the TypeScript checker.
Lint behavior
- Hook ordering, correctness checks, and
no-consolefail lint. React’s purity, state-in-effect, and manual memoization checks keep their previous warning severity. - Unused lint suppressions fail lint. The remaining image exceptions use Oxlint directives, and GitHub Actions shows lint findings inline.
Build and verification
The Next.js security patch (#179) and JSX cleanup (#180) have landed on main and are included in the base.
Verified on Node.js 24 with pnpm 9. The frozen install, production build, type checking, formatting, and all 639 tests passed. Oxlint reported 0 errors and 37 warnings.
Summary by cubic
Replaces ESLint with oxlint 1.94.0, cutting lint time from ~9s to <1s and dropping typescript-eslint so the project moves to TypeScript 7. A new CI job runs pnpm test:types after Next.js route type generation. Lint results stay at 0 errors with all warnings pinned, so CI stays green.
Refactors
- Mapped the old ESLint config into
.oxlintrc.json; removedeslint.config.mjs, the leftover.eslintrc.json,next-env.d.ts, andeslint-plugin-react-compiler(no oxlint equivalent). - Added
keyprops to five list renders wherereact/jsx-keydisable comments no longer line up. - Suppressed
no-control-regexinlib/for-sale.ts, where rejecting control characters is the point. - Patched Next.js to 16.4.6 after the production build flagged the previous pin.
Dependencies
- Swapped ESLint packages for
oxlintand addedtest:types, which generates route types then runstsc --noEmit. - Rebuilt
package.jsonand the lockfile from main, restoring Next 16.4 and other upgrades, and bumpedtypescriptto^7.