Biome vs Ruff
Biome: New JS/TS projects that want linting and formatting with minimal setup.; Ruff: Any Python codebase that wants one fast lint-and-format tool.
| Field | Biome | Ruff |
|---|---|---|
| Pricing | Open source | Open source |
| Open source | Yes | Yes |
| Self-hostable | Yes | Yes |
| Ecosystem | JavaScript / TypeScript | Python |
| License | MIT OR Apache-2.0 | MIT |
| Category | Linting & formatting | Linting & formatting |
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).
Ruff
An extremely fast Python linter and formatter written in Rust that replaces Flake8, isort, Black and more.
Choose Ruff if
Any Python codebase that wants one fast lint-and-format tool.
Why it’s here
Ruff provides a Python linter and formatter in one CLI. ruff check reports violations and can apply fixes, while ruff format rewrites source layout with a style designed to be compatible with Black (linter, formatter). The two commands can use the same project configuration file (configuration).
Pick it when
- You want the linter to fix violations it can correct automatically. Run
ruff check --fixto apply safe fixes and review diagnostics that still need changes (fixes). - You need CI to report code formatting differences without editing files. Run
ruff format --checkfor formatting andruff checkfor linting (formatter, linter). - Different parts of your repository need different rule sets or file exclusions. Ruff selects the closest configuration file for each source file and supports explicit inheritance through
extend(configuration).
Skip it when
- Your lint checks depend on a custom third-party plugin. Ruff's FAQ says it does not yet support third-party plugins, so verify equivalent rule coverage before moving a suite (FAQ).
- You need identical output from the Black formatter in every case. Ruff's formatter documentation lists intentional deviations, so check the formatting diff before changing the formatter for an existing project (formatter).
Current state
Ruff 0.17.6 was released on 2026-11-19 (release notes). The licence is MIT (repository licence).
Setup
Run pip install ruff and ruff check . from the project root. Run ruff format --check to inspect format compliance before applying it (tutorial, formatter).
Watch out for
Ruff distinguishes safe fixes from unsafe fixes and applies the latter only when enabled in configuration or requested with --unsafe-fixes. Unsafe fixes can change behaviour or remove comments, so review those edits with that possibility in mind (fix safety). The formatter guide also lists lint rules that can conflict with formatting. Check that list when enabling additional rules, particularly rules that enforce their own layout in areas the formatter already controls (conflicting lint rules). The formatter treats line length as a target, so ruff format can leave lines that still trigger a line-length lint rule (line length).