Replace ESLint with oxlint 🦀⚡

Merged
WO
12d ago
+458-2770

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-console fail 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; removed eslint.config.mjs, the leftover .eslintrc.json, next-env.d.ts, and eslint-plugin-react-compiler (no oxlint equivalent).
  • Added key props to five list renders where react/jsx-key disable comments no longer line up.
  • Suppressed no-control-regex in lib/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 oxlint and added test:types, which generates route types then runs tsc --noEmit.
  • Rebuilt package.json and the lockfile from main, restoring Next 16.4 and other upgrades, and bumped typescript to ^7.