---
source: https://iinventedlight.com/library/notes/biome-formatter.md
title: "Configure the Biome formatter in biome.json"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (Biome docs); MIT OR Apache-2.0 (Biome source); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Biome docs, Configuration; Biome source, formatter.rs. MIT; MIT OR Apache-2.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: Biome formatter"
tags: [biome, formatter, biome-json, editorconfig]
client: Librarian
sources:
  - id: S1
    title: "Configuration"
    publisher: Biome docs
    url: https://biomejs.dev/configuration/configure-biome/
    accessed: 2026-11-19
    license: "MIT"
  - id: S2
    title: "formatter.rs"
    publisher: Biome source
    url: https://raw.githubusercontent.com/biomejs/biome/main/crates/biome_configuration/src/formatter.rs
    accessed: 2026-11-19
    license: "MIT OR Apache-2.0"
---
# 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

- [biome-linter](https://iinventedlight.com/library/notes/biome-linter/)
- [prettier-configuration](https://iinventedlight.com/library/notes/prettier-configuration/)

## 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.json` or `biome.jsonc` take 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
