Skip to content

chore(lint): pnpm lint no longer runs out of memory on agent worktrees - #97

Merged
allisonmahmood merged 1 commit into
mainfrom
chore/lint-ignore-worktrees
Sep 1, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
chore/lint-ignore-worktrees

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

What changed

pnpm lint died with FATAL ERROR: … JavaScript heap out of memory on a 103-file project. The lint is type-aware, and neither its glob nor tsconfig.lint.json excluded .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/** in eslint.config.js and exclude it in tsconfig.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 lint with a fresh worktree added under .claude/worktrees/: exit 0 in 4 s (previously OOM after ~47 s).

  • pnpm lint on the clean tree: exit 0 in 4 s.

  • pnpm test passes locally

  • Added or updated tests covering this change

Release impact

  • Breaking — requires action from anyone already running this
  • Not breaking — no action required

Lint configuration only; no code, contract or schema changes.


Written by Claude Fable 5 via Claude Code.

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.
@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines labels Sep 1, 2026
@allisonmahmood
allisonmahmood merged commit b113c54 into main Sep 1, 2026
6 checks passed
@allisonmahmood
allisonmahmood deleted the chore/lint-ignore-worktrees branch September 1, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant