From c2537af7ef48869cd3a606c0a979834c8b60ab60 Mon Sep 17 00:00:00 2001 From: joel <13933101+lurkshark@users.noreply.github.com> Date: Tue, 10 Nov 2026 16:18:39 -0800 Subject: [PATCH] Mark the ESLint config as root so nested worktrees can lint 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. --- .eslintrc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 89268631..a225dde4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,7 @@ module.exports = { + // Stop ESLint from also loading a parent directory's config, e.g. the main + // checkout's when linting from a git worktree nested inside it + root: true, env: { browser: false, es2021: true,