Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

chore(lint): ignore Claude Code's local worktrees

spacesdrivee35a07d24624
diff --git a/docs/workflows/TESTING.md b/docs/workflows/TESTING.md
index 3848936..7c09132 100644
--- a/docs/workflows/TESTING.md
+++ b/docs/workflows/TESTING.md
@@ -134,6 +134,7 @@ One ESLint run from the root covers the whole repository. The shared config is `
- `site/**`: React hooks and React Refresh rules with browser globals; every unused variable is an error, capitalised names included
- `backend/tests/**`, `frontend/tests/**`, `frontend/vite.config.ts`, `site/vite.config.ts`, `site/build/**`, `site/tests/**` and `scripts/**`: Node globals
- Root `*.js` and `*.mjs` config files: the ESLint recommended rules with Node globals
+- Ignored: `dist`, `.wrangler` and `node_modules` anywhere, and `.claude`, where Claude Code keeps local worktrees (whole copies of the repository)
Lint must report 0 problems; the CI workflow fails on any error. The shadcn files that export their cva variants next to the component (`badgeVariants`, `buttonVariants`, `tabsListVariants`, `toggleVariants`, `useSidebar`), Intent UI's chart file with its helpers (`useChart`, `valueToPercent`, `constructCategoryColors`, `getColorValue`) and the contexts that export their hooks (`useAppContext`, `useAuth`) are listed in `allowExportNames` for `react-refresh/only-export-components` in `eslint.config.mjs`; editing one of those files reloads the page instead of hot-updating it. Add a name there only for the same pattern.
diff --git a/eslint.config.mjs b/eslint.config.mjs
index 4abbfbd..bbaeb01 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -6,7 +6,8 @@ import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'
export default defineConfig([
- globalIgnores(['**/dist', '**/.wrangler', '**/node_modules']),
+ // .claude holds Claude Code's local worktrees: whole copies of the repository with their own node_modules
+ globalIgnores(['**/dist', '**/.wrangler', '**/node_modules', '.claude']),
{
files: ['**/*.{ts,tsx}'],
extends: [js.configs.recommended, tseslint.configs.recommended],