From 3dacc73dab57a529cee5d231acd788d64ad91787 Mon Sep 17 00:00:00 2001 From: belviskhoremk Date: Wed, 12 Aug 2026 10:54:57 +0200 Subject: [PATCH] fix: exclude nested worktree directories from eslint Same class of issue as the earlier vitest fix: linting from the main checkout also picked up whatever worktree happened to still exist under .claude/worktrees/, surfacing as a tsconfigRootDir conflict once a second worktree was present on disk. Claude-Session: https://claude.ai/code/session_01NhxA4npAXAxmCDEJt6kxSH --- eslint.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index ef614d2..7a742af 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -6,7 +6,10 @@ import tseslint from 'typescript-eslint' import { defineConfig, globalIgnores } from 'eslint/config' export default defineConfig([ - globalIgnores(['dist']), + // Git worktrees for in-progress branches live nested under .claude/worktrees/ + // in this project's dev setup — without this, linting from the main checkout + // also lints each worktree's full copy of the source tree. + globalIgnores(['dist', '.claude/worktrees/**']), { files: ['**/*.{ts,tsx}'], extends: [