Repository navigation
Mark the ESLint config as root so nested worktrees can lint - #476
Merged
Merged
Conversation
ESLint keeps looking for config files in parent directories until one
sets root: true. A git worktree created inside the checkout (for example
under .claude/worktrees/) picks up both its own .eslintrc.js and the
parent checkout's, and each loads its own copy of eslint-plugin-notice.
ESLint then refuses to run ("couldn't determine the plugin notice
uniquely"), which also fails the lint-staged pre-commit hook.
GGonryun
approved these changes
Nov 11, 2026
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.
Problem
ESLint fails in any git worktree created inside this checkout, for example one under
.claude/worktrees/:ESLint keeps looking for config files in parent directories until it finds one with
root: true. Our.eslintrc.jsdoesn't set it, so a nested worktree loads both its own.eslintrc.jsand the parent checkout's. Each one resolveseslint-plugin-noticefrom its ownnode_modules, and ESLint won't choose between the two copies. Because the lint-staged pre-commit hook runs ESLint, committing from a nested worktree fails too.Status: N/A
Change
Sets
root: truein.eslintrc.js, so ESLint stops at this repository's config. Lint rules are unchanged: no config above the repository root was meant to apply.Check off any of the following areas of code that are modified:
Type of Change
Validation
npx eslint src/commands/allow.tsfailed with the error above before this change and passes after it.yarn lint(Prettier, ESLint,tsc) and the lint-staged pre-commit hook pass.Rollout / rollback
N/A