fix(meta): prettier and eslint skip other sessions' worktrees under .claude/worktrees/ - #295
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…claude/worktrees/ A bare `npm run format:check` or `npm run lint` in a main checkout read every nested Claude Code worktree under `.claude/worktrees/` (git-excluded via `.git/info/exclude`, which prettier does not read; ESLint 10 flat config does not skip dot-directories). `.prettierignore` gains `.claude/worktrees/` and `eslint.config.mjs` gains `.claude/worktrees/**`, each with a comment matching the `.markdownlint-cli2.jsonc` entry. Repo-meta only: no SKILLS_VERSION bump. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PrzemekGalarowicz
force-pushed
the
claude/vigorous-ellis-ae8bd6
branch
from
September 28, 2026 11:18
402c454 to
a1dd982
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A bare
npm run format:checkornpm run lintin a main checkout read every other Claude Code session's worktree under.claude/worktrees/<name>/. On 2026-09-28, with 9 sibling worktrees present,npm run checkfailedformat:checkwith hundreds of[warn]lines, all for files inside those worktrees. They are excluded through.git/info/exclude, which prettier does not read, and ESLint 10's flat config does not skip dot-directories..prettierignoregains.claude/worktrees/.eslint.config.mjs's globalignoresgains.claude/worktrees/**..markdownlint-cli2.jsonc.claude/worktreesentry: the reason, and the bound (tied to where Claude Code places worktrees today).CHANGELOG.md: one dated## [Unreleased]entry. Repo-meta only, soSKILLS_VERSIONdoes not move.This closes the prettier half that 6.13.1 measured and deferred.
Verification
A probe at
.claude/worktrees/probe/held a copy of HEAD plus a badly formatted.mdand a.mjswith two lint errors.format:checklint.prettierignoreexcludes only at the root).mjsThe probe was removed afterwards.
check:changelog-entryis GREEN againstorigin/main.Full
npm run checkdid not go green locally, for two reasons outside this change:check:reconcile. That worktree directory was reused, and it still held a leftover reconcile baseline from another feature (2026-09-27). All 129 of its unexplained flags were changed by commits merged since that anchor, and the other 2 are this PR's config files. CI has no baseline.check:reconcilepassed.npm testhad 1 failure out of 4256:pharn/floor/run-marker.test.mjs:564, which fails only on macOS (/varvs/private/var). It fails the same way on untouchedorigin/main, and it is being fixed in a separate session.Not claimed
command-hygiene.test.mjs, so nothing stops one being removed.🤖 Generated with Claude Code