From 9bff19a3e6a1377a1765b691ffe5358d8b687271 Mon Sep 17 00:00:00 2001 From: Edwin van den Houdt Date: Thu, 27 Aug 2026 14:11:18 +0200 Subject: [PATCH] build: keep agent worktrees out of prettier and git MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Running implementation agents with worktree isolation puts full checkouts of this repo under .claude/worktrees/. `prettier --check .` walks into them, so `npm run ci` went red on 70 files that belong to another checkout — including the vendored CIBG design system, which the top-level ignore already excludes. Ignored in both .prettierignore and .gitignore; the latter so a worktree can never be committed into the repo it is a checkout of. Co-Authored-By: Claude Opus 5 --- .gitignore | 4 ++++ .prettierignore | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 10477d4..022d93b 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,7 @@ backend/openzaak/seeded.env # WP-55: render-prod-secrets.sh's output — the real client secret, never committed backend/openzaak/setup_configuration/data.prod.yaml + +# Agent git worktrees (Claude Code `isolation: "worktree"`) — full checkouts of +# this repo nested inside it; never commit one. +.claude/worktrees/ diff --git a/.prettierignore b/.prettierignore index 2e7e30e..07cb7ce 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,6 +4,11 @@ storybook-static*/ coverage/ .angular/ +# Agent git worktrees — full checkouts of this repo nested inside it, so an +# unignored `prettier --check .` walks into every one of them (and reports the +# vendored CIBG files that the top-level ignore already excludes). +.claude/worktrees/ + # Lockfile package-lock.json