← All notes

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

Sources

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

Permanent ID: iil:note:z3w87xxs

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.},
}

Markdown

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.

All artifact files (JSON index)

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.