← All notes

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

Sources

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

Permanent ID: iil:note:wm64214g

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

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-formatter.md.