From 7c63dad9bbd0f14628462549ee3577a521f4bf11 Mon Sep 17 00:00:00 2001 From: Anto Subash Date: Sat, 5 Sep 2026 08:56:39 +0200 Subject: [PATCH] chore(lint): stop Biome walking into git worktrees MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `git worktree add .claude/worktrees/` is the workflow this repo already uses, and every worktree carries its own `biome.json`. Biome 2.5 treats a nested config as an error — "Found a nested root configuration, but there's already a root configuration" — one per worktree, so `make lint` fails outright for anyone with a branch checked out that way. CI never sees it: a fresh clone has no worktrees. `files.includes` scopes which files are checked; this scopes which directories are walked at all. Same 343 files checked before and after, verified by running Biome over `host packages modules` with and without the line. Placed among the existing negations rather than first: a leading `!` pattern makes Biome match nothing, and `!.claude` without the `/**` suffix is the form 2.2+ wants. --- biome.json | 1 + 1 file changed, 1 insertion(+) diff --git a/biome.json b/biome.json index 58a48033..46447840 100644 --- a/biome.json +++ b/biome.json @@ -7,6 +7,7 @@ "modules/*/*/pages/**", "modules/*/*/**/components/**", "modules/*/tests-js/**", + "!.claude", "!host/client_app/modules.generated.ts", "!host/client_app/modules.manifest.json", "!host/client_app/modules.generated.css",