DEV Community

Alex Spinov
Alex Spinov

Posted on

Biome Has a Free Linter and Formatter — Replace ESLint and Prettier with One Fast Tool

Why Biome?

Biome replaces ESLint + Prettier with a single tool written in Rust. It's 25x faster and needs zero config.

npm install --save-dev @biomejs/biome
npx biome init
Enter fullscreen mode Exit fullscreen mode

Format + Lint in One Command

npx biome check .          # Lint + format check
npx biome check --write .  # Auto-fix everything
npx biome format --write . # Format only
npx biome lint .           # Lint only
Enter fullscreen mode Exit fullscreen mode

biome.json

{
  "formatter": {
    "indentStyle": "space",
    "indentWidth": 2,
    "lineWidth": 100
  },
  "linter": {
    "rules": {
      "recommended": true,
      "suspicious": { "noExplicitAny": "warn" },
      "complexity": { "noForEach": "off" }
    }
  },
  "javascript": {
    "formatter": { "quoteStyle": "single", "semicolons": "asNeeded" }
  }
}
Enter fullscreen mode Exit fullscreen mode

Speed

Tool Time (1000 files)
Biome 0.3s
ESLint + Prettier 8s

25x faster. Written in Rust, parallel processing.

Migration from ESLint

npx biome migrate eslint --write
npx biome migrate prettier --write
Enter fullscreen mode Exit fullscreen mode

Reads your .eslintrc and .prettierrc, converts to biome.json.

Need to extract data from any website at scale? I build custom web scrapers — 77 production scrapers running on Apify Store. Email me at spinov001@gmail.com for a tailored solution.

Top comments (0)