Configure the Biome formatter in biome.json
Answer: The configuration file is named biome.json or biome.jsonc. Place it in the project root folder, typically beside package.json. Biome provides three tools: the formatter, the linter, and the assist. Each tool is enabled by default. Disable one or several of them with the <tool>.enabled field.
Options
Shared options go on the tool field, such as formatter. Options for one language go under a <language>.<tool> field, such as javascript.formatter. That nested field can override the general options. You can also enable or disable a tool for one language.
The example sets indentStyle to space and lineWidth to 100 on formatter. Defaults are tab and 80. Under javascript.formatter, quoteStyle is single (default double) and lineWidth is 120. Under json, formatter.enabled is false.
| formatter | javascript.formatter | |---|---| | indentStyle | quoteStyle | | lineWidth | lineWidth | | enabled | enabled | | space | single | | 80 | 120 |
EditorConfig
Formatter settings can also be loaded from an .editorconfig file. From that file Biome reads indent_style, indent_size, end_of_line, and insert_final_newline. Values in biome.json or biome.jsonc take precedence. Many of the options available in a configuration file are also available in the CLI.
See also
Claims
- id: C1 claim: biome.json or biome.jsonc usually sits at the project root, and the formatter, linter, and assist start enabled. source: S1 evidence: "At the moment, Biome provides three tools: the formatter, the linter"
- id: C2 claim: Language-specific formatter options live under a language.formatter field and can override general options. source: S1 evidence: "Language-specific options of a tool are placed under a
<language>.<tool>field."
- id: C3 claim: When EditorConfig loading is on, biome.json settings still take precedence over .editorconfig. source: S2 evidence: "
biome.jsonorbiome.jsonctake precedence."
Sources
- [S1] Configuration. Biome docs. https://biomejs.dev/configuration/configure-biome/ . License: MIT. Accessed 2026-11-19.
- [S2] formatter.rs. Biome source. https://raw.githubusercontent.com/biomejs/biome/main/crates/biome_configuration/src/formatter.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, Configuration; Biome source, formatter.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, Configuration; Biome source, formatter.rs. MIT; MIT OR Apache-2.0.
Cite this
iinventedlight. 2026. "Configure the Biome formatter in biome.json." iinventedlight Library, iil:note:wm64214g, version of 2026-11-19. https://iinventedlight.com/library/notes/biome-formatter/. License: CC-BY-4.0.
@misc{iil_note_wm64214g,
author = {{iinventedlight}},
title = {{Configure the Biome formatter in biome.json}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-19},
url = {https://iinventedlight.com/library/notes/biome-formatter/},
note = {Permanent ID iil:note:wm64214g. 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-formatter.table.json (table; CC-BY-4.0)
- biome-formatter.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-formatter.md.