You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal: move from ESLint to oxlint (and oxfmt for formatting)
Why
Fast. Linting the three packages takes about 0.13s with oxlint (type-aware) versus about 5.85s with ESLint, roughly 45x (six runs each, same machine).
Current. We are on ESLint 8 with the old config format and the deprecated eslint-config-airbnb-typescript. typescript-eslint does not support TypeScript 7; oxlint's type-aware rules run on the TypeScript 7 compiler.
Fewer dependencies. 4 top-level packages instead of 241.
What I tested (oxlint 1.95.0, config mirroring our current rules)
18 of our 33 active rules carry over, including explicit-function-return-type, import/extensions and the type-aware only-throw-error.
13 are formatting rules (indent, quotes, semi, ...) that oxlint doesn't cover.
max-len and naming-convention have no equivalent.
Only new findings: two unused catch parameters, configurable.
Formatting with oxfmt (0.80.0, single quotes, semicolons, width 125)
Formats all files in about 40ms and replaces the 13 formatting rules plus max-len.
One-time reformat: about 800 changed lines in src (6%), plus about 850 in tests if fixtures are excluded.
It reflows code to fit the width, so some hand-wrapped imports and calls change shape.
Pre-1.0, so we should pin the version.
Dependency
oxlint's type-aware rules reject our current moduleResolution: "node" and baseUrl, so that part depends on the tsconfig change in #478. The non-type-aware rules run today.
Activity
mr-zwets commentedon Dec 30, 2025
we said we'd consider migrating to something more modern than eslint
biome and deno came up, but oxlint as part of vite-plus would also be an option later in 2026
vite-plus or deno would both be nice in that they attempt to handle the full JS toolchain
mr-zwets commentedon Nov 29, 2026
Proposal: move from ESLint to oxlint (and oxfmt for formatting)
Why
eslint-config-airbnb-typescript. typescript-eslint does not support TypeScript 7; oxlint's type-aware rules run on the TypeScript 7 compiler.What I tested (oxlint 1.95.0, config mirroring our current rules)
explicit-function-return-type,import/extensionsand the type-awareonly-throw-error.indent,quotes,semi, ...) that oxlint doesn't cover.max-lenandnaming-conventionhave no equivalent.catchparameters, configurable.Formatting with oxfmt (0.80.0, single quotes, semicolons, width 125)
max-len.src(6%), plus about 850 in tests if fixtures are excluded.Dependency
oxlint's type-aware rules reject our current
moduleResolution: "node"andbaseUrl, so that part depends on the tsconfig change in #478. The non-type-aware rules run today.Suggested order
Same direction as cashonize/cashonize-wallet#407.
[-]Modernize eslint setup[/-][+]Modernize lint setup (migrate to oxlint)[/+]chore: replace ESLint with oxlint and add oxfmt
style: format packages with oxfmt
chore: check formatting in CI and ignore the reformat in git blame
chore: replace ESLint with oxlint and add oxfmt
style: format packages with oxfmt
chore: check formatting in CI and ignore the reformat in git blame