# 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. ## Install Copy the content below into your project: # Biome — Fast Linter & Formatter for JS/TS ## Quick Use ```bash npm install --save-dev --save-exact @biomejs/biome npx @biomejs/biome init ``` ```bash # Format files npx biome format --write . # Lint files npx biome lint . # Both at once npx biome check --write . ``` ```json // 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 ```json { "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 ```json { "organizeImports": { "enabled": true } } ``` Before: ```typescript import { z } from 'zod'; import React from 'react'; import { useState } from 'react'; import { Button } from './components'; import axios from 'axios'; ``` After: ```typescript 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 ```bash # Auto-migrate your ESLint config npx @biomejs/biome migrate eslint # Auto-migrate your Prettier config npx @biomejs/biome migrate prettier ``` ### CI Integration ```yaml # 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](https://github.com/biomejs). Licensed under Apache-2.0. > > [biome](https://github.com/biomejs/biome) — ⭐ 24,200+ --- ## 快速使用 ```bash npm install --save-dev @biomejs/biome npx biome init npx biome check --write . ``` --- ## 简介 Biome 是拥有 24,200+ GitHub stars 的 Rust 驱动工具链,一个工具替代 ESLint + Prettier。200+ 检查规则,比 ESLint+Prettier 快 25x,97% Prettier 兼容。 --- ## 来源与感谢 > Created by [Biome](https://github.com/biomejs). Licensed under Apache-2.0. > > [biome](https://github.com/biomejs/biome) — ⭐ 24,200+ --- Source: https://tokrepo.com/en/workflows/f6018b95-6783-42f1-8c39-a0d199f94504 Author: AI Open Source