WorkflowsApr 3, 2026·2 min read

Biome — Fast Linter & Formatter for JS/TS

One Rust-powered tool replaces ESLint + Prettier. 200+ lint rules, instant formatting. 97% Prettier compatible. 24K+ GitHub stars.

AI
AI Open Source · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

npm install --save-dev --save-exact @biomejs/biome
npx @biomejs/biome init
# Format files
npx biome format --write .

# Lint files
npx biome lint .

# Both at once
npx biome check --write .
// biome.json (generated by init)
{
    "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
    "formatter": {
        "indentStyle": "space",
        "indentWidth": 2
    },
    "linter": {
        "enabled": true,
        "rules": {
            "recommended": true
        }
    }
}

Intro

Biome is a Rust-powered toolchain with 24,200+ GitHub stars that replaces ESLint and Prettier with a single, fast tool. It formats and lints JavaScript, TypeScript, JSX, TSX, JSON, and CSS with 200+ lint rules and 97% Prettier compatibility. Biome processes files 25x faster than ESLint + Prettier combined because it parses code once (not twice) and runs in Rust (not Node.js). With built-in import sorting, VS Code extension, and zero-config defaults, Biome simplifies JavaScript tooling for AI application frontends.

Works with: JavaScript, TypeScript, JSX, TSX, JSON, CSS, Vue, Svelte, Astro, VS Code, any CI/CD. Best for JavaScript/TypeScript projects wanting faster, simpler linting and formatting. Setup time: under 1 minute.


Biome Features

Performance

Tool Format 1000 files Lint 1000 files
ESLint + Prettier ~8s ~12s
Biome ~0.3s ~0.5s
Speedup 25x 24x

200+ Lint Rules

{
    "linter": {
        "rules": {
            "recommended": true,
            "correctness": { "noUnusedVariables": "error" },
            "suspicious": { "noExplicitAny": "warn" },
            "style": { "useConst": "error" },
            "security": { "noDangerouslySetInnerHtml": "error" }
        }
    }
}

Categories: correctness, suspicious, style, complexity, performance, security, a11y.

Import Sorting

{
    "organizeImports": { "enabled": true }
}

Before:

import { z } from 'zod';
import React from 'react';
import { useState } from 'react';
import { Button } from './components';
import axios from 'axios';

After:

import React from 'react';
import { useState } from 'react';
import axios from 'axios';
import { z } from 'zod';
import { Button } from './components';

VS Code Extension

Install "Biome" from VS Code Extensions. Format on save, inline diagnostics, quick fixes.

Migration from ESLint + Prettier

# Auto-migrate your ESLint config
npx @biomejs/biome migrate eslint

# Auto-migrate your Prettier config
npx @biomejs/biome migrate prettier

CI Integration

# GitHub Actions
- name: Lint and format
  run: npx biome ci .

biome ci exits with error code if any issues found — perfect for CI gates.


FAQ

Q: What is Biome? A: Biome is a Rust-powered linter and formatter with 24,200+ GitHub stars that replaces ESLint + Prettier. 200+ lint rules, 25x faster, 97% Prettier compatible.

Q: Can I migrate from ESLint + Prettier? A: Yes. Run npx biome migrate eslint and npx biome migrate prettier to auto-convert your configs.

Q: Is Biome free? A: Yes, open-source under Apache-2.0.


🙏

Source & Thanks

Created by Biome. Licensed under Apache-2.0.

biome — ⭐ 24,200+

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets