diff --git a/eslint.config.mjs b/eslint.config.mjs index 157e715..c79c0bd 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -11,7 +11,13 @@ export default tseslint.config( { // dist/ is generated by `tsc`; examples/ is a standalone Next.js app with // its own toolchain and is not part of this package's published `files`. - ignores: ['dist/**', 'examples/**', 'node_modules/**'], + // + // .claude/ holds per-session git worktrees — each a full copy of this repo, + // generated dist/ included. These patterns are anchored at the project root, + // so `dist/**` does NOT match `.claude/worktrees/x/dist/**`: without this + // entry a worktree is linted as source and reports errors in files that are + // not part of the checkout being tested. + ignores: ['dist/**', 'examples/**', 'node_modules/**', '.claude/**'], }, js.configs.recommended, ...tseslint.configs.recommended,