From 851db29ea95642f7e54988c8db79780d9b7bf49c Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Sun, 4 Jan 2026 10:44:15 +0000 Subject: [PATCH 1/2] feat: document editor options --- src/content/docs/reference/vscode.mdx | 33 ++++++++++++++ src/content/docs/reference/zed.mdx | 65 ++++++++++++++++++++++++++- 2 files changed, 96 insertions(+), 2 deletions(-) diff --git a/src/content/docs/reference/vscode.mdx b/src/content/docs/reference/vscode.mdx index 87a8dd6c1..b87db2e52 100644 --- a/src/content/docs/reference/vscode.mdx +++ b/src/content/docs/reference/vscode.mdx @@ -151,6 +151,39 @@ When set to `true`, the extension will only register itself as a formatter and d The `biome.enabled` setting must be set to `true` (default) in the same scope for this setting to take effect. ::: +### `biome.inlineConfig` + +An inline version of the Biome configuration. The options of this configuration will override the options coming from any `biome.json` file read from disk (or the defaults). + +For example, let's say your project enables the rule `noConsole` with `error` severity: + +```json title="biome.json" +{ + "linter": { + "rules": { + "suspicious": { + "noConsole": "error" + } + } + } +} +``` + +However, during local development, you want to disable this rule because it's useful and you don't want to see red squiggles. In your `inline_config`, you would write something like the following: + +```json title=".vscode/settings.json" +{ + "biome.inlineConfig": { + "linter": { + "rules": { + "suspicious": { + "noConsole": "off" + } + } + } + } +} +``` ### `biome.lsp.bin` diff --git a/src/content/docs/reference/zed.mdx b/src/content/docs/reference/zed.mdx index 502dee554..2b960eb84 100644 --- a/src/content/docs/reference/zed.mdx +++ b/src/content/docs/reference/zed.mdx @@ -31,7 +31,9 @@ If neither exists, it will ask Zed to install Biome using `npm` and use that. ## Configuration -By default, the biome.json file is required to be in the **root of the workspace**. +### `config_path` + +By default, the configuration file is required to be in the **root of the workspace**. Otherwise, it can be configured through the lsp settings: @@ -47,7 +49,66 @@ Otherwise, it can be configured through the lsp settings: } ``` -### Formatting +### `require_config_file` + +It enables Biome only if the project contains a configuration file: + +> Default: `false` + +```json5 title=".zed/settings.json" +{ + "lsp": { + "biome": { + "settings": { + "require_config_file": true + } + } + } +} +``` + +### `inline_config` + +An inline version of the Biome configuration. The options of this configuration will override the options coming from any `biome.json` file read from disk (or the defaults). + +For example, let's say your project enables the rule `noConsole` with `error` severity: + +```json title="biome.json" +{ + "linter": { + "rules": { + "suspicious": { + "noConsole": "error" + } + } + } +} +``` + +However, during local development, you want to disable this rule because it's useful and you don't want to see red squiggles. In your `inline_config`, you would write something like the following: + +```json title=".zed/settings.json" +{ + "lsp": { + "biome": { + "settings": { + "inline_config": { + "linter": { + "rules": { + "suspicious": { + "noConsole": "off" + } + } + } + } + } + } + } +} +``` + + +## Formatting To use the language server as a formatter, specify biome as your formatter in the settings: From 852d29f5e972572917d88d554772d28df997beb8 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Sun, 4 Jan 2026 11:16:35 +0000 Subject: [PATCH 2/2] Update src/content/docs/reference/vscode.mdx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- src/content/docs/reference/vscode.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/reference/vscode.mdx b/src/content/docs/reference/vscode.mdx index b87db2e52..97f7ce6bb 100644 --- a/src/content/docs/reference/vscode.mdx +++ b/src/content/docs/reference/vscode.mdx @@ -169,7 +169,7 @@ For example, let's say your project enables the rule `noConsole` with `error` se } ``` -However, during local development, you want to disable this rule because it's useful and you don't want to see red squiggles. In your `inline_config`, you would write something like the following: +However, during local development, you want to disable this rule because it's useful, and you don't want to see red squiggles. In your `inlineConfig`, you would write something like the following: ```json title=".vscode/settings.json" {