chore: Alt-Worktree aus Git entfernen und ESLint entsperren
.claude/worktrees/agent-a82a3716/ lag mit 369 getrackten Dateien im Repo — eine vollständige, veraltete Kopie von src/. Zwei Folgen: `eslint .` brach mit 965 fatalen Parse-Errors ab, weil der Worktree eine eigene tsconfig mitbringt und tsconfigRootDir mehrdeutig wurde. Und jeder repo-weite Glob traf Duplikate, was die reale Gefahr barg, Änderungen in der Kopie statt im Original zu machen. - git rm -r --cached auf das Verzeichnis, Dateien auf der Platte bleiben - .claude/worktrees/ in .gitignore - .claude/** in die ESLint-Ignoreliste; Untracking allein genügt ESLint nicht, es liest die Platte, nicht den Index ESLint liefert damit statt 965 Parse-Errors wieder echte Befunde. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -6,7 +6,9 @@ import tseslint from 'typescript-eslint'
|
||||
import { defineConfig, globalIgnores } from 'eslint/config'
|
||||
|
||||
export default defineConfig([
|
||||
globalIgnores(['dist']),
|
||||
// `.claude/worktrees/` holds transient agent copies of src/ — linting them
|
||||
// produces thousands of duplicate parse errors and drowns out real findings.
|
||||
globalIgnores(['dist', '.claude/**']),
|
||||
{
|
||||
files: ['**/*.{ts,tsx}'],
|
||||
extends: [
|
||||
|
||||
Reference in New Issue
Block a user