Enable and tune Biome lint rules and recommended sets
Answer: The linter comes with recommended rules. That set is automatically enabled, and the rules vary based on the language. In the configuration crate, a preset configuration is for enabling a set of rules. The default PresetConfig is recommended. The PresetConfig type also includes All and None.
Safe fixes
Biome makes a difference between safe fixes and unsafe fixes. The main difference is that safe fixes can be automatically applied when saving a file. Unsafe fixes can't. Users can override which fixes are considered safe however.
A rule should be informative. It should explain why it is triggered and tell the user what they should do to fix the error.
| linter | rules | |---|---| | recommended | automatically enabled | | "off" | noDebugger | | "recommended": false | disable the recommended rules | | "on" | default severity | | all | PresetConfig::All | | none | PresetConfig::None |
Configuration
A rule can be turned off with off. One sample disables the recommended rule noDebugger under linter.rules.suspicious. Set recommended to false when you only want a few rules enabled. Each lint rule is shipped with its own default severity. To apply that default severity, use the "on" configuration.
See also
Claims
- id: C1 claim: Biome enables a recommended lint rule set automatically, and that set varies by language. source: S1 evidence: "Biome linter comes with a set of recommended rules that are automatically enabled"
- id: C2 claim: Safe fixes may apply on save, while unsafe fixes may not, unless the user overrides that. source: S1 evidence: "safe fixes can be automatically applied when saving a file, while unsafe fixes can't"
- id: C3 claim: Biome's PresetConfig is a preset for enabling a set of rules, defaulting to recommended. source: S2 evidence: "A preset configuration for enabling a set of rules."
Sources
- [S1] Linter. Biome docs. https://biomejs.dev/linter/ . License: MIT. Accessed 2026-11-19.
- [S2] presets.rs. Biome source. https://raw.githubusercontent.com/biomejs/biome/main/crates/biome_configuration/src/analyzer/presets.rs . License: MIT OR Apache-2.0. Accessed 2026-11-19.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Biome docs, Linter; Biome source, presets.rs. MIT; MIT OR Apache-2.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Biome docs, Linter; Biome source, presets.rs. MIT; MIT OR Apache-2.0.
Cite this
iinventedlight. 2026. "Enable and tune Biome lint rules and recommended sets." iinventedlight Library, iil:note:z3w87xxs, version of 2026-11-19. https://iinventedlight.com/library/notes/biome-linter/. License: CC-BY-4.0.
@misc{iil_note_z3w87xxs,
author = {{iinventedlight}},
title = {{Enable and tune Biome lint rules and recommended sets}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-19},
url = {https://iinventedlight.com/library/notes/biome-linter/},
note = {Permanent ID iil:note:z3w87xxs. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- biome-linter.table.json (table; CC-BY-4.0)
- biome-linter.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/biome-linter.md.