Ignore local dev tool worktrees#1310
Merged
Merged
Conversation
Adds .gitignore rules to keep transient .claude/ subdirs (notably .claude/worktrees) out of the repo, while preserving tracked agents/commands/hooks/ops/skills/settings.json. Adds defensive directory excludes to tsconfig.json so build/dist/external/ node_modules/.cache/.claude artifacts are never picked up. The 'include' pattern already scopes compilation to src/**/*.mts; these are belt-and- suspenders. Without these, eslint walks .claude/worktrees/* during 'pnpm check' and descends into nested checkouts, which combined with the type-aware projectService config can hang for many minutes.
Collaborator
|
Thank you Simon (@simonhj) ! Yes, working on making that less thrashy too. |
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
(chore) : Claude likes to store git worktrees in ./.claude/worktrees. This confuses the heck out of the linting tools, causing them to seemingly hang. Added worktres and pnpm store to various ignore lists,
Verification
Note
Low Risk
Low risk: changes are limited to ignore/exclude patterns for git, linters, TypeScript, and Vitest, with minimal chance of inadvertently skipping intended source files if patterns are too broad.
Overview
Prevents tooling hangs/noise by excluding local dev artifacts from discovery: repo-local
.pnpm-storeand Claude-managed.claude/worktreesare now ignored by git and excluded fromoxlint,biome, and both Vitest configs.Expands
tsconfig.jsonexcludes to keep TypeScript from scanning build/cache/output directories (including.claude/**and common artifact folders).Reviewed by Cursor Bugbot for commit a2e6870. Configure here.