Exclude .claude/worktrees from ESLint to clean lint output
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Problem
pnpm lint currently reports 20 ESLint errors — every one of them comes from generated files in .claude/worktrees/<branch>/.next/ directories created by Claude Code's worktree feature. None of them are real source files; they are throwaway build artifacts in temporary worktrees that get cleaned up automatically. The noise hides any real lint regressions.
Evidence
pnpm lint 2>&1 | head -30shows errors only under.claude/worktrees/.../.next/.pnpm exec eslint src --max-warnings 0is clean — confirming the issue is purely the worktree artifacts.
Proposed approach
- Open
eslint.config.mjs(flat config — top-levelignoresarray). - Add
.claude/worktrees/**(and**/.next/**for safety) to the globalignores:{ ignores: [ \".claude/worktrees/**\", \"**/.next/**\", \"node_modules/**\", \"dist/**\", // ...existing ignores ], }, - Confirm
pnpm lintreturns zero errors after the change. - Update
.gitignoreif.claude/worktreesis not already covered (it should be, but verify).
Acceptance criteria
-
pnpm lintexits 0 with no errors and no warnings. -
pnpm exec eslint src --max-warnings 0continues to be clean. -
.claude/worktrees/directory is git-ignored (confirm withgit check-ignore). -
pnpm typecheckstill passes.
Verification
pnpm lint→ exit 0, zero errors.- Create an obvious lint error in
src/lib/utils.ts(e.g. unused variable) →pnpm lintreports it. Revert. - Re-run
pnpm lint→ clean again.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with eslint.config.mjs and inspect the existing top-level ignores, then verify .claude/worktrees/ coverage in .gitignore with git check-ignore. Run pnpm lint, pnpm exec eslint src --max-warnings 0, and pnpm typecheck before and after the configuration change. Done means lint exits cleanly, the existing src check and typecheck still pass, and a temporary lint error in src/lib/utils.ts is detected.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 82/100