Format and lint web projects with a single tool
Imagine an editor environment that corrects syntax errors and formatting issues the moment you type. Biome is a tool that combines the formatter and linter functions for web development languages such as JavaScript, TypeScript, and CSS. It provides reasonable defaults without separate configuration and runs without Node.js.
Combining formatter and linter
Biome is a fast formatter with 97% compatibility with Prettier. It supports JavaScript, TypeScript, JSX, JSON, CSS, GraphQL, Markdown, YAML, and SCSS. Handling both functions in a single tool provides a consistent experience for code processing, error display, caching, and configuration management.
Editor-centric interaction
Biome is designed to be used interactively within an editor from the start. It formats and lints incorrect formatting or rule violations in real time while you write code. A sophisticated parser represents source text with high fidelity and has error recovery capabilities, ensuring smooth editor integration through LSP (Language Server Protocol) support.
Installation and execution
Install the @biomejs/biome package as a development dependency via npm. Use the npx @biomejs/biome format --write command to modify file formatting, and npx @biomejs/biome lint --write to apply safe fixes. You can also test it in an online playground compiled to WebAssembly without installation.
Pre-use considerations
Biome is distributed under the MIT or Apache 2.0 license and works without Node.js. Given its 97% compatibility with Prettier, you should verify whether you can accept Biome's reasonable defaults rather than expecting results identical to existing Prettier configurations. Enterprise support and sponsorship programs are also available, allowing you to consider long-term maintenance stability.