Cette page est affichée en anglais. Une traduction française est en cours.
WorkflowsApr 3, 2026·2 min de lecture

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.

Introduction

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 et remerciements

Created by Biome. Licensed under Apache-2.0.

biome — ⭐ 24,200+

Discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires