diff --git a/CLAUDE.md b/CLAUDE.md index fd31243..29dde1f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -110,7 +110,7 @@ When changing the mapping in [`packages/opencode-models-info/src/mapping.ts`](pa - **Default shell is zsh** on this laptop. `bash -c` scripts in tooling should stay POSIX-portable or be invoked under zsh explicitly. - **`gh` auth** lives in the interactive zsh profile. If `gh` looks unauthenticated under a plain non-interactive shell, retry under `zsh -i -c '…'` — `GITHUB_TOKEN` is loaded from `.zshrc`. -- **Biome ignores `**/.claude`** in `biome.json`. The Claude Code worktree path lives under `.claude/worktrees//`, which means running `pnpm lint` from a worktree silently lints zero files. Lint per-package (`pnpm --filter exec biome lint .`) from a worktree, or run the workspace lint from the main checkout. +- **Biome and the `.claude` worktree path.** `biome.json` excludes `**/.claude`, and Claude Code worktrees live under `.claude/worktrees//`. A bare `biome … .` therefore self-excludes (the `.` arg resolves under `.claude`) and silently processes **zero** files. To avoid that trap, the root `lint` / `format` / `format:check` scripts pass **explicit paths** (`packages test-env *.json`) instead of `.` — Biome evaluates `includes` relative to `biome.json`, so those relative paths never hit the `.claude` exclusion and the scripts work identically from a worktree or the main checkout. If you add a new top-level lintable directory, add it to those three scripts (otherwise it won't be checked). ## Design docs and plans diff --git a/package.json b/package.json index 5e5fb5d..eebcd5f 100644 --- a/package.json +++ b/package.json @@ -6,15 +6,15 @@ "packageManager": "pnpm@11.3.0", "scripts": { "build": "pnpm -r build", - "lint": "biome lint .", + "lint": "biome lint packages test-env *.json", "typecheck": "pnpm -r typecheck", "test": "pnpm -r test", "test:env:up": "docker compose -f test-env/docker-compose.yml up -d --wait", "test:env:down": "docker compose -f test-env/docker-compose.yml down -v", "test:integration:run": "INTEGRATION_MODELS_INFO_URL=${INTEGRATION_MODELS_INFO_URL:-http://127.0.0.1:18080/v1/models} pnpm -r --if-present test:integration", "test:integration": "pnpm test:env:up && (pnpm test:integration:run; status=$?; pnpm test:env:down; exit $status)", - "format": "biome format --write .", - "format:check": "biome format ." + "format": "biome format --write packages test-env *.json", + "format:check": "biome format packages test-env *.json" }, "devDependencies": { "@biomejs/biome": "2.4.15",