DEV Community

Alex Spinov
Alex Spinov

Posted on

Biome Has a Free Formatter and Linter That Replaces ESLint and Prettier in One Tool

Biome is a fast formatter, linter, and more — written in Rust. It replaces ESLint + Prettier with a single tool that is 35x faster.

What You Get for Free

  • Formatter — Prettier-compatible, 35x faster
  • Linter — 270+ rules from ESLint and others
  • Import sorting — automatic
  • Single config — one tool, one config file
  • LSP — editor integration
  • JS/TS/JSX/TSX/JSON/CSS — all supported
  • Zero config — works out of the box

Quick Start

npm i -D @biomejs/biome
npx biome init
npx biome check --write .
Enter fullscreen mode Exit fullscreen mode

biome.json

{
  "formatter": {
    "indentStyle": "space",
    "indentWidth": 2
  },
  "linter": {
    "rules": {
      "recommended": true
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Biome vs ESLint + Prettier

Feature Biome ESLint + Prettier
Speed 35x faster Baseline
Config files 1 2-3
Languages JS/TS/JSON/CSS JS/TS (plugins)
Dependencies 1 20+

Need dev tooling help? Check my work on GitHub or email spinov001@gmail.com for consulting.

Top comments (0)