Skip to content

Commit ee3eab5

Browse files
sorccuclaude
andauthored
chore: ignore .claude/ in ESLint config (#1400)
The root lint script is `eslint .`, and lint-staged runs that same whole-repo command on any staged ts/js/mjs file. ESLint flat config does not auto-ignore dot-directories, so from the main checkout ESLint walks into .claude/worktrees/<name>/, where each worktree holds a full checkout with its own in-progress code — producing failures unrelated to the change being committed. Nothing under .claude/ needs linting, and linting inside a worktree is unaffected. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 910adb3 commit ee3eab5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ const checklyStyle = {
4343

4444
export default defineConfig([
4545
globalIgnores([
46+
// Holds git worktrees, each a full checkout of the repo with its own
47+
// in-progress code that must not be linted as part of this checkout.
48+
'**/.claude/',
4649
'**/dist/',
4750
`**/gen/`,
4851
'**/__checks__/**/*.spec.{js,ts,mjs}',

0 commit comments

Comments
 (0)