Exclude .claude/worktrees from ESLint to clean lint output
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Domain
- tooling
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.
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.
- Dominant language
- HTML
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
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.
More from unic/ai-developer-hub
-
area:ux bug priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
unic/ai-developer-hub#56 ·
-
documentation priority:medium
Difficulty 2/5 Half a day Newbie friendliness 76/100
unic/ai-developer-hub#52 ·
-
area:billing bug priority:medium tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
unic/ai-developer-hub#43 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
unic/ai-developer-hub#123 ·
-
agentic-workflows
Difficulty 3/5 1-2 days Newbie friendliness 35/100
unic/ai-developer-hub#86 · 3 comments ·
All issues in unic/ai-developer-hub
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
hemilabs/ui-monorepo#2332 ·
-
Help-Wanted Needs-Triage Package-Update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/winget-pkgs#438662 ·
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
olcf/olcf-test-harness#278 · 1 comment ·