One fast toolchain that formats and lints JavaScript, TypeScript, JSON, CSS, HTML, GraphQL, YAML and Markdown.
open sourceMIT OR Apache-2.0self-hostablefree
Biome is a formatter and linter for web projects in one Rust binary. The formatter covers JavaScript, TypeScript, JSX, TSX, JSON, HTML, CSS, SCSS, GraphQL, YAML and Markdown with 97% compatibility with Prettier, and it can format code that doesn't parse yet as you type. The linter has 816 rules drawn from ESLint, TypeScript ESLint and other sources, with diagnostics that point at the exact problem and safe fixes. biome check --write formats and lints in one pass. It needs no configuration to start, integrates with editors, and supports GritQL and JavaScript plugins for custom rules. Vue, Svelte and Astro support is experimental. Its homepage lists AWS, Cloudflare, Discord, Google, Microsoft, Node.js, Slack and Vercel among its users.
Problems it solves
- Prettier and ESLint together are slow on our big TypeScript repo
- replace ESLint and Prettier with one tool and one config file
- format and lint JSON, CSS and TypeScript with the same tool
- linting takes minutes in CI
- too many ESLint plugins and config files to maintain
- a fast formatter that matches Prettier's output
- format and lint in one command before every commit
Features
- formatter for JS, TS, JSX, TSX, JSON, HTML, CSS, SCSS, GraphQL, YAML and Markdown
- 97% Prettier compatibility
- formats malformed code in the editor
- 816 lint rules from ESLint, TypeScript ESLint and other sources
- safe and unsafe fixes
- check command that formats and lints together
- zero configuration to start
- GritQL and JavaScript plugins
- Google Apps Script support
- experimental Vue, Svelte and Astro support
View 2 more
- editor integration
- standalone binary or npm package
Limitations
- Vue, Svelte and Astro support is experimental, and HTML needs explicit opt-in.1
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what Biome does.
- Oxc The JavaScript Oxidation Compiler: high-performance JavaScript and TypeScript tools in Rust
- ESLint Find and fix problems in your JavaScript code.
- Prettier An opinionated code formatter that reprints your code in one consistent style
- golangci-lint Fast linters runner for Go
- Ruff An extremely fast Python linter and code formatter, written in Rust