Repository navigation
chore(lint): pnpm lint no longer runs out of memory on agent worktrees - #97
Merged
Merged
Conversation
Type-aware ESLint built one TypeScript program over every copy of the repo under .claude/worktrees/ and ran out of heap. Ignore .claude/ in the ESLint config and tsconfig.lint.json. Written by Claude Fable 5 via Claude Code.
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.
What changed
pnpm lintdied withFATAL ERROR: … JavaScript heap out of memoryon a 103-file project. The lint is type-aware, and neither its glob nortsconfig.lint.jsonexcluded.claude/worktrees/— where agent sessions had left thirteen full copies of the repo — so ESLint built one TypeScript program over 1,100+ files and twelve copies of Effect's types. CI never saw it because CI has no worktrees.Fix: ignore
.claude/**ineslint.config.jsand exclude it intsconfig.lint.json. The stale worktrees were removed separately (all their branches were already merged); this change keeps the next batch from bringing the problem back.How it was verified
pnpm lintwith a fresh worktree added under.claude/worktrees/: exit 0 in 4 s (previously OOM after ~47 s).pnpm linton the clean tree: exit 0 in 4 s.pnpm testpasses locallyAdded or updated tests covering this change
Release impact
Lint configuration only; no code, contract or schema changes.
Written by Claude Fable 5 via Claude Code.