All posts
rusttooling

Oxlint and Oxfmt Next to Biome, and Which One I Kept

Oxfmt hit beta in February and Oxlint keeps growing. Both are Rust, both are fast. A side-by-side on a real project, and why I kept Biome on most repos but not all of them.

Muhamad Choirul Adam 3 min readPhoto: Unsplash

Last July I replaced ESLint and Prettier with Biome and wrote about it. Since then the Oxc project, the parser behind Rolldown, shipped two tools that cover the same ground: Oxlint for linting and Oxfmt for formatting. Oxfmt went beta on February 24.

So I tried them on the same React project Biome runs on and compared.

The shape of each

BiomeOxlint + Oxfmt
ToolsOne binary, lint + formatTwo binaries
Configbiome.json.oxlintrc.json, .oxfmtrc.json
Formatter goalPrettier-likePrettier-compatible
RulesOwn rule set, Biome namesESLint rule names and plugins (react, import, unicorn, ...)
Type-aware rulesSome, without running tscSeparate type-aware mode, still alpha

Where Oxc wins

ESLint compatibility. Oxlint uses ESLint's rule names and implements rules from popular plugins. If you're coming from a large ESLint config, the mapping is mostly one to one. With Biome, every rule has a new name and some don't exist.

Prettier compatibility. Oxfmt aims to format like Prettier, and has a migration command:

npx oxfmt --migrate prettier

On my project the diff after switching was a handful of lines. Biome's formatter is close to Prettier too, but I remember the first run producing a bigger diff.

Speed. Both are so fast that it doesn't matter. Linting the whole project takes well under a second either way. I stopped measuring.

Where Biome wins

One tool. One binary, one config, one editor extension, one CI step. With Oxc it's two of each. That sounds minor until you're setting up the fourth repo.

Maturity. Oxfmt is in beta. Biome's formatter has been stable for a long time. For a codebase several people commit to, a formatter that changes its output between versions is a real cost.

Type-aware linting today. Rules like "no floating promises" need type information. Oxlint's type-aware mode builds on the native TypeScript port and is still alpha. I'd rather wait for it to settle.

What I kept

Rendering diagram…
  • Team repos stay on Biome. One tool, stable output, nothing to explain.
  • A legacy project with a 300-line ESLint config moved to Oxlint. The rule names carried over, and linting went from the slowest CI step to the fastest. Prettier stays there until Oxfmt is stable.
  • New personal projects: I'll try Oxlint and Oxfmt and see if the two-tool setup bothers me.

The good news is that the choice is between two fast Rust tools now. The slow option isn't on the table anymore.