mirror of
https://github.com/supabase/supabase.git
synced 2026-05-06 08:56:46 -04:00
32cd9eb5c9
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>