← Blog8 min read#biome#linter#formatter

Biome Linter and Formatter: Replace ESLint + Prettier in One Tool

Biome replaces ESLint and Prettier in a single fast binary. Here's how to migrate, configure it, and why you won't look back.

terminal showing fast linter output with green checkmarks on dark screen

Why Your ESLint + Prettier Setup Is a Mess

If you've maintained a mid-size React project for more than six months, you know the drill. ESLint config files sprawled across .eslintrc.js, .eslintignore, and a dozen plugins. Prettier arguing with ESLint over semicolons. eslint-config-prettier trying to patch the peace. It works - until it doesn't, and then you lose 45 minutes on a Saturday debugging a rule conflict you didn't write.

Biome ships as a single binary. No plugins to install, no peer-dependency hell, no separate formatter process. You get linting and formatting in one tool that runs in under 100ms on most codebases. That's not a marketing claim - it's measurable on any mid-size Next.js app.

Honestly, the thing that sold me wasn't the speed. It was deleting prettier.config.js, .prettierignore, .eslintrc.js, eslint-plugin-react, eslint-plugin-react-hooks, eslint-config-prettier, and eslint-plugin-import in one commit and watching CI go green. That feeling is real.

Worth noting: Biome reached its 1.0 release in 2023 and has been production-stable since. By mid-2026 it covers the vast majority of ESLint rules you actually use - not all of them, but enough that the tradeoff is worth it for most teams.

Installing Biome and Wiring It Up

Installation is one command. Biome plays nicely with pnpm, npm, and yarn - pick your poison.

# pnpm
pnpm add --save-dev --save-exact @biomejs/biome

# npm
npm install --save-dev --save-exact @biomejs/biome

The --save-exact flag is intentional. Biome's formatting output can shift between minor versions, and you don't want a teammate's npm install to suddenly reformat 400 files. Pin it. After install, scaffold the config:

npx @biomejs/biome init

That drops a biome.json in your project root. It's readable JSON - not a function that exports an object that imports plugins that read env vars. Refreshing. Here's a typical starting config for a TypeScript React project:

{
  "$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
  "organizeImports": {
    "enabled": true
  },
  "linter": {
    "enabled": true,
    "rules": {
      "recommended": true,
      "correctness": {
        "noUnusedVariables": "error"
      },
      "style": {
        "useConst": "error",
        "noNonNullAssertion": "warn"
      }
    }
  },
  "formatter": {
    "enabled": true,
    "indentStyle": "space",
    "indentWidth": 2,
    "lineWidth": 100
  },
  "javascript": {
    "formatter": {
      "quoteStyle": "double",
      "trailingCommas": "es5",
      "semicolons": "always"
    }
  }
}

Quick aside: lineWidth: 100 is the sweet spot if you're working on 1440p monitors. The Prettier default of 80 characters made sense in 2013 on 13-inch MacBook Pros. You're not in 2013 anymore.

Running Biome: Check, Format, and Fix

Biome has three main commands you'll use every day. biome check runs both linting and formatting checks simultaneously. biome format reformats files. biome lint runs only lint rules. Most teams wire all three through npm scripts.

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

The --write flag applies fixes in place - same as prettier --write or eslint --fix. Without it, Biome just reports what's wrong, which is useful in CI where you want failures, not auto-mutations.

# CI - fail on any issue, don't touch files
npx @biomejs/biome ci .

The biome ci command is purpose-built for pipelines. It exits with a non-zero code on any lint or format violation and never writes files. Use biome check --write locally, biome ci in GitHub Actions. That pattern keeps your CI honest without weird git diffs.

Migrating from ESLint + Prettier Without Losing Your Mind

Biome ships a migration command that reads your existing ESLint config and translates what it can. It won't get everything - some ESLint plugins don't have Biome equivalents yet - but it gets you 80% of the way there in seconds.

npx @biomejs/biome migrate eslint --write
npx @biomejs/biome migrate prettier --write

Run both. The Prettier migration pulls your printWidth, tabWidth, singleQuote, trailingComma, and bracketSpacing settings directly into biome.json. After that, do a biome check . and look at what's flagged - some rules that were warnings in ESLint are errors in Biome by default, and you'll want to tune those before your first commit.

Look, the migration won't be zero-diff. Biome's formatter has slightly different opinions from Prettier in edge cases - long ternaries, object destructuring with comments, certain JSX patterns. Run biome format --write . on your whole codebase, commit that as a single "chore: apply Biome formatting" commit, and get it behind you. Don't mix formatting changes with feature work.

After migration, delete the old config files and uninstall the old packages. Don't leave both tools installed - you'll confuse your editor integrations and eventually run into a situation where VSCode is using ESLint to underline something Biome has already fixed.

Editor Integration and Pre-commit Hooks

The VSCode extension is called "Biome" (publisher: biomejs). Install it, then add this to your .vscode/settings.json so it formats on save and doesn't conflict with any lingering Prettier extension:

{
  "editor.defaultFormatter": "biomejs.biome",
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "quickfix.biome": "explicit",
    "source.organizeImports.biome": "explicit"
  },
  "[javascript]": { "editor.defaultFormatter": "biomejs.biome" },
  "[typescript]": { "editor.defaultFormatter": "biomejs.biome" },
  "[typescriptreact]": { "editor.defaultFormatter": "biomejs.biome" },
  "[json]": { "editor.defaultFormatter": "biomejs.biome" }
}

Commit that .vscode/settings.json to your repo so every teammate gets the same setup. No more "why does my save look different from yours" Slack threads.

For pre-commit hooks, skip Husky + lint-staged if you can. Biome is fast enough that running it on the entire project is viable. But if your project is large - say, over 2000 files - lint-staged is still worth the setup to scope the check to staged files only:

# Install lint-staged
pnpm add --save-dev lint-staged

# .lintstagedrc.json
{
  "*.{js,ts,jsx,tsx,json}": ["biome check --write --no-errors-on-unmatched"]
}

In practice, even on a 500-file codebase, biome check . runs in about 300ms. That's faster than ESLint on 50 files. It's not magic - it's Rust.

Biome's Linting Rules: What You Get

Biome's rule set is organized into categories: correctness, style, suspicious, complexity, performance, a11y, and nursery. The recommended preset is sensible - it catches real bugs without screaming at you for stylistic choices you've already decided on.

The a11y rules are a genuine surprise. You'd normally need eslint-plugin-jsx-a11y for things like missing alt attributes, interactive elements with no keyboard handler, or invalid ARIA roles. Biome has those built in. If you're building a component library - or even browsing the Empire UI glassmorphism components for inspiration - those accessibility checks run automatically without a single extra install.

{
  "linter": {
    "rules": {
      "recommended": true,
      "a11y": {
        "noAutofocus": "warn",
        "useAltText": "error",
        "useButtonType": "error"
      },
      "performance": {
        "noAccumulatingSpread": "error"
      },
      "nursery": {
        "noRestrictedImports": "warn"
      }
    }
  }
}

The nursery category is where new rules land before they're considered stable. Worth enabling some of them in warn mode - they're often the most interesting ones. That said, don't blindly enable the whole nursery in a CI pipeline that blocks deployments. Nursery rules can change behavior between patch releases.

One more thing - Biome also formats JSON, including package.json, tsconfig.json, and biome.json itself. If you want consistent JSON formatting across your project without a separate tool, that's free. Just make sure "*.json" is in your editor formatter settings.

Should You Switch Today? Tradeoffs to Know

The honest answer is: probably yes, if you're starting a new project. For existing projects, the calculus depends on how many ESLint plugins you're running that don't have Biome equivalents yet. eslint-plugin-testing-library, some GraphQL rules, and a few custom org-level rules are the most common blockers.

Check biomejs.dev/linter/rules before committing. The page lists every rule and its origin - you can quickly cross-reference against your ESLint config. If more than 5 rules you actively rely on are missing, wait six months. Biome's pace of development is fast. What wasn't there in early 2025 often is by now.

For tooling-heavy workflows - monorepos, design system builds - Biome integrates cleanly with Turborepo. You'd run biome ci . as one of the pipeline tasks. This pairs well with the patterns covered in the turborepo-setup-guide if you're already going down that path. The pnpm-vs-npm-vs-yarn article is also worth a read if you haven't sorted out your package manager yet.

In practice, most teams that switch to Biome report two things: CI is noticeably faster, and new developer onboarding is simpler because there are fewer config files to understand. Whether those wins outweigh the missing rules depends entirely on your specific stack. But if you're building UI components and browsing tools like the gradient generator or box shadow generator to prototype styles, Biome's fast feedback loop fits that iterative workflow really well.

FAQ

Does Biome fully replace ESLint?

For most projects, yes. Biome covers the core ESLint recommended rules, React hooks rules, and accessibility rules out of the box. If you depend on niche plugins like eslint-plugin-testing-library or custom org rules, check the Biome rule list first - some aren't there yet.

Is Biome compatible with TypeScript?

Yes, TypeScript is first-class. Biome handles .ts and .tsx files natively without needing a separate parser or @typescript-eslint plugin. Type-aware rules that require the TS compiler are the one gap, but those are rare in practice.

Can I run Biome and ESLint at the same time during migration?

You can, but it gets messy fast. The cleaner approach is to do the migration in a single dedicated PR: run the migration commands, apply formatting to the whole codebase, then delete ESLint. Don't run them in parallel long-term.

Does Biome support monorepos?

Yes. You can put a biome.json at the root and extend or override it per workspace using the extends key. It also integrates directly with Turborepo as a pipeline task.

Free components in 41 styles
React & Tailwind, copy-paste ready.
Browse β†’

Read next

CSS Dev Tools & Generators: The Complete Frontend Toolkit for 2026 β†’What Is Glassmorphism? A Free React + Tailwind Guide β†’Turborepo Setup Guide: Monorepo Caching, Pipelines and Remote Cache β†’Lighthouse Performance Audit: Every Score, Every Fix Explained β†’