All posts
toolingworkflow

Biome 2 and the End of My ESLint + Prettier Setup

One tool, one config, and lint rules that understand types without running the TypeScript compiler. Why I switched, and the rule I set for myself.

Muhamad Choirul Adam 3 min readPhoto: Unsplash

Every JavaScript project I've started came with the same ritual: install ESLint, install Prettier, install the plugin that stops them fighting, install the config that turns off the rules that overlap, and then debug why the editor formats differently from CI.

Biome replaces both with one binary and one config file. It's been good for a while. Biome 2, released in June, is the version that made me switch everything.

Rendering diagram…

What's new in 2.0

  • Type-aware rules without tsc. Biome now does its own type inference, so rules like noFloatingPromises can catch an unawaited promise without spinning up the TypeScript compiler the way typescript-eslint does.
  • Plugins. You can write custom lint rules with GritQL patterns, which covers the "we need one team-specific rule" case that used to keep people on ESLint.
  • Better monorepo support. Nested config files that extend the root one.
  • A rewritten import organizer that sorts and merges imports as part of biome check.

Switching

Biome can read your existing setup and translate it:

bunx @biomejs/biome init
bunx @biomejs/biome migrate eslint --write
bunx @biomejs/biome migrate prettier --write

Then delete the ESLint and Prettier packages, their configs, and the glue plugins. In most of my projects that removed more dependencies than any other single change.

The day-to-day command is one line:

package.json
{
  "scripts": {
    "lint": "biome check",
    "format": "biome check --write"
  }
}

biome check runs formatting, linting, and import sorting together. It's fast enough that I stopped noticing it in pre-commit hooks.

What you might miss

Be honest about the gaps before you switch a team:

  • Framework-specific plugins. Some ESLint plugins, especially niche ones, have no Biome equivalent yet. Check the rules you actually rely on, not the ones you have enabled.
  • Formatting in other languages. Biome covers JS, TS, JSX, JSON, CSS, and GraphQL well. If you lean on Prettier for something outside that list, keep it for those files.

For a typical React or Next.js app, I haven't hit a blocker.

The rule I set for myself: no suppressions

Biome supports // biome-ignore comments, and every project eventually fills up with them. On my own projects I don't use them, and I don't add files to the config's ignore list to make errors go away.

When a rule fires, either the code changes or the rule gets turned off for the whole project with a reason in the config. No middle ground.

It sounds strict. In practice it's made me read lint messages properly for the first time. Most of them were right. The few that weren't got switched off once, in one place, where everyone can see the decision.