Adopt Biome incrementally: format first, lint later
Add Biome as a formatter first, keep your existing linter, then enable Biome lint rules one category at a time.
20 Nov 2026, 23:44 UTC

One linter, one formatter, one config file
A pull request touches three files. Prettier complains about line width, ESLint flags an unused import, and a teammate’s editor reformats the whole block. CI runs two formatters and two linters, and the merge queue turns yellow over style noise. The team wants a single toolchain, but replacing ESLint and Prettier in one commit risks breaking the build and flooding reviewers with lint errors.
You do not have to migrate everything at once. Add Biome as the formatter first, keep your existing linter in place, then enable Biome lint categories one at a time once the team agrees on the rules.
Configure scope before rules
Biome settings live in biome.jsonc, a JSON-with-comments file. Comments are convenient for annotating why a rule is enabled, but the file is still parsed as JSON with comment support. Biome automatically skips files listed in .gitignore, and you can narrow scope further with files.include and files.exclude.
{
"$schema": "https://biomejs.dev/schemas/YOUR_INSTALLED_VERSION/schema.json",
"formatter": {
"indentStyle": "tab",
"lineWidth": 80
},
"linter": {
"enabled": false
},
"files": {
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["dist/**", "node_modules/**"]
}
}
Run biome --version before copying the schema URL; rule availability and CLI flags change between releases, and the schema should match your installed version. With "linter": { "enabled": false }, Biome only reports formatting issues, so your current ESLint configuration keeps governing logic and style rules.
Check without changing files, then apply formatting only
Run these commands in the project root where biome.jsonc lives. You need read and write access to the source files.
biome --version
biome check src/components/Button.tsx
biome format --write src/components/Button.tsx
biome check is read-only: it reports diagnostics and exits with a non-zero code when issues exist, but it does not modify files. biome format --write overwrites the target file with formatted output. Inspect git diff before committing, because formatting changes can be noisy across a large file.
If the diff matches your team’s style, add the formatted files to the same pull request. Keep ESLint running in parallel so logic rules still pass while the team adjusts to Biome’s formatting.
Enable lint categories one at a time
Once formatting is settled, flip enabled to true and activate a single category, such as correctness:
"linter": {
"enabled": true,
"rules": {
"correctness": {
"noUnusedVariables": "error"
}
}
}
Run biome check on a feature branch, fix the failures it reports, and merge only when the check passes. Then add the next category—for example, style or complexity—in a separate pull request. Avoid the nursery category for stable CI builds; its rules are experimental and may be removed or changed between versions.
Add Biome to CI as a gate
Add a pipeline step that runs biome check on every pull request and fails the build on a non-zero exit. Pin the Biome version in your dependency manifest so rule behavior does not drift between CI runs. Intentionally introduce an unformatted file in a test branch to confirm the step fails, then remove it.
Trade-offs and limitations
- Biome does not support every ESLint plugin or custom rule, so some rules may require manual mapping or staying in ESLint longer.
biome check --applywrites safe fixes automatically, but rules that may alter runtime behavior require an unsafe flag. Review those changes carefully before committing.- Formatter output may differ from Prettier, so expect a one-time formatting diff across the repository.
Verify the result
After applying changes, run git diff --stat to confirm only intended files were modified, run biome check again and expect exit code zero, then run your type checker and test suite. If everything passes, the incremental adoption step is complete.
Start small: formatter this week, one lint category next month. Biome works best when the team adopts it at the pace of their pull requests, not all at once.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.