Files
supabase/.claude/scripts
Alaister Young 32cd9eb5c9 chore: extend format/lint hook to all apps and packages (#44898)
The Claude Code post-tool-use format/lint hook was hardcoded to only run
on `apps/studio/` files. This updates it to work across the whole repo.

**Changed:**
- Prettier now runs on any supported file type in the repo (not just
Studio)
- ESLint runs for any workspace that has it configured, using a simple
lookup table
- Unsupported file types (e.g. `.sh`) are skipped to avoid "no parser"
errors

## To test

- Edit a file in `apps/studio/` with bad formatting — should get
auto-formatted and linted
- Edit a file in `packages/common/` — should get auto-formatted (no
ESLint since it's not configured there)
- Edit a `.sh` file — should be skipped with no errors

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-04-15 23:08:26 +09:00
..