Biome vs Prettier
Biome: New JS/TS projects that want linting and formatting with minimal setup.; Prettier: Consistent formatting across many file types with zero debate.
| Field | Biome | Prettier |
|---|---|---|
| Pricing | Open source | Open source |
| Open source | Yes | Yes |
| Self-hostable | Yes | Yes |
| Ecosystem | JavaScript / TypeScript | JavaScript / TypeScript |
| License | MIT OR Apache-2.0 | MIT |
| Category | Linting & formatting | Linting & formatting |
Choose Biome over Prettier when
Choose it when the same tool should format and lint JavaScript or TypeScript files.
Biome supplies a formatter and a linter. Both can run separately, and its CLI can also run them together. Its formatter accepts configuration for settings such as indentation and line width, so check the output against the style you want before switching (Biome, formatter).
SourceChecked 29 November 2026
Biome
A fast formatter and linter for JavaScript, TypeScript, JSON and CSS in a single Rust binary.
Choose Biome if
New JS/TS projects that want linting and formatting with minimal setup.
Why it’s here
Biome is one Rust binary with one biome.json that formats and lints JavaScript, TypeScript, JSX, JSON, CSS, SCSS, GraphQL, YAML and Markdown. Its formatter scores 97% compatibility with Prettier (README), its linter has 816 rules (linter docs), and it ships no lint rules about formatting, because the formatter owns every formatting decision (linter docs). Biome's benchmark, run on a 2020 M1, found the formatter about 25 times and the linter about 15 times faster than Prettier and ESLint without plugins; the linter run left type-aware rules off (benchmark).
Pick it when
- You want one tool and one config in place of Prettier and ESLint.
biome migrate eslint --writereads flat and legacy ESLint config andbiome migrate prettier --writeports Prettier options (migration guide). - You run a monorepo. Since v2 nested
biome.jsonfiles work out of the box (big projects). - You enforce a few project-specific patterns. GritQL plugins match code patterns and can suggest rewrites (plugins).
Skip it when
- You lint Vue, Svelte or Astro files. Support is experimental, needs
html.experimentalFullSupportEnabled, and targets Svelte 5 only (language support). - You depend on third-party ESLint plugins. Biome's JavaScript plugins have been a developer preview since v2.6 and expose only a subset of its services (v2.6 post).
- You need broad type-aware linting. Biome's
typesdomain lists 24 rules and marks 20 of them nursery (domains).
Current state
The latest release is 2.6.8, published 2026-11-15 (releases). Version 2.6 landed on 2026-10-15 (v2.6 post). The licence is MIT OR Apache-2.0 (package.json). Copyright is held by Biome Developers and Contributors from 2023, and the MIT licence also credits Rome Tools for 2020 to 2023 (LICENSE-MIT).
Setup
npm install --save-dev --save-exact @biomejs/biome
npx @biomejs/biome migrate eslint --write
Watch out for
The migration sets the rule preset to none and enables only the rules it ported. By default it ports only rules identical to ESLint's; --include-inspired adds rules that merely resemble them, and even then some options are not implemented, so the result does not behave exactly like ESLint (migration guide). Biome's versioning page warns that even patch releases can change formatting or lint results and asks you to pin the exact version, which --save-exact does (versioning). noFloatingPromises lives in the nursery group, where behaviour can change at any time, and enabling it activates the Biome Scanner and its type inference engine (rule page). Biome does not support globs in CLI arguments; your shell expands them, with results that differ by shell, so set includes in the config instead (linter docs).
Prettier
An opinionated code formatter for JavaScript, TypeScript, CSS, Markdown and more.
Choose Prettier if
Consistent formatting across many file types with zero debate.
Why it’s here
Prettier parses code and prints it with a consistent style, including wrapping expressions to fit its formatting rules (why Prettier). It handles JavaScript, TypeScript, CSS, GraphQL and Markdown, among other languages, so one formatting command can cover source files and documentation (supported languages, CLI).
Pick it when
- You want formatting checks across a repository. Run
prettier . --checkin CI to report files whose formatting differs and return a nonzero exit code when changes are needed (CLI). - You want contributors to format with the same project version. Install Prettier as an exact development dependency. The installation guide recommends a local version because updates can change the output (installation).
- You want to keep generated output out of the formatting pass. Put paths in
.prettierignoreusing gitignore syntax, and use aprettier-ignoredirective when a supported language needs a local exception (ignoring code).
Skip it when
- Your style policy requires a hard line-length ceiling.
printWidthis a target for the formatter, and output lines may be shorter or longer (options). - Your style guide requires preserving manual layout across JavaScript source. Prettier parses and reprints the source, making its own wrapping decisions. It documents particular exceptions, such as retaining the multiline layout of an object with a newline before its first property under the default
objectWrapsetting (why Prettier, object wrapping).
Current state
Prettier 3.10.1 was released on 2026-11-12 (release notes). The licence is MIT (repository licence).
Setup
Run npm install --save-dev --save-exact prettier. Create a .prettierrc containing {} to use default options, then run npx prettier . --check for a first pass that leaves files untouched (installation, CLI).
Watch out for
--write edits files in place. Run --check when you only want a report, and use .prettierignore to exclude files that should stay untouched (CLI, ignoring code). Quote globs passed to the CLI so Prettier expands them consistently across shells and platforms (CLI).