From 63d4df0cdedf63614121004aa2572f45977bcd7b Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Thu, 20 Aug 2026 19:55:29 +0200 Subject: [PATCH] chore(tooling): keep lint and format out of the scratch worktrees MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .claude/worktrees holds full checkouts of this repo, generated .svelte-kit trees included, so 'eslint .' was linting every in-flight branch — 410 errors, none of them ours. Same root cause the doc-link checker hit. --- .prettierignore | 3 +++ eslint.config.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.prettierignore b/.prettierignore index 63df78a4..f6dbee72 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,6 +1,9 @@ # Dependencies & build output node_modules/ .svelte-kit/ + +# Scratch worktrees (git-ignored) — full checkouts of this repo +.claude/ build/ dist/ coverage/ diff --git a/eslint.config.js b/eslint.config.js index 9f42c9b6..9ddc8762 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -21,6 +21,10 @@ export default ts.config( ignores: [ "node_modules/", ".svelte-kit/", + // Scratch worktrees (git-ignored) hold full checkouts of this repo, + // including their own generated .svelte-kit trees. Without this, `eslint .` + // lints every in-flight branch and reports its generated code as ours. + ".claude/", "build/", "dist/", "coverage/",