From 1d2bfa5ac2dd23dd6e6f96a334e7efc613bab17a Mon Sep 17 00:00:00 2001 From: AJ Barea Date: Tue, 22 Sep 2026 07:46:53 -0400 Subject: [PATCH] chore: keep prettier out of the per-session worktrees A worktree under .claude/worktrees/ holds a second copy of the whole tree, so prettier reads every path again under a prefix no rule below matches: `src/content/` does not cover `.claude/worktrees//src/content/`. CMS content that is deliberately exempt on main therefore reddened `format:check` from inside a worktree. Absent in CI, so this only ever affected someone running the worktree workflow locally. Scoped to the worktrees path rather than `.claude/`, so the tracked skill-context.md stays covered -- checked by breaking its formatting and confirming format:check still fails on it. --- .prettierignore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.prettierignore b/.prettierignore index 428c2c7..365c6ba 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,6 +1,12 @@ dist/ .astro/ node_modules/ +# Per-session git worktrees live here. They hold a second copy of the whole +# tree, so prettier reads every ignored path again under a prefix that no +# other rule below matches -- `src/content/` does not cover +# `.claude/worktrees//src/content/`. Absent in CI, so this only ever +# reddened `format:check` for someone running the worktree workflow locally. +.claude/worktrees/ coverage/ playwright-report/ test-results/