## Summary
- Adds a pre-commit hook that runs prettier on staged files to catch
formatting issues before CI
- Uses `husky` for git hooks and `lint-staged` to scope prettier to only
staged files
- Preserves the existing `prepare` script behavior (`node
packages/core/scripts/prepare.js`)
## Changes
- Added `husky` and `lint-staged` as root devDependencies
- Created `.husky/pre-commit` hook that runs `pnpm exec lint-staged`
- Configured lint-staged: `{ "*": "prettier --write --ignore-unknown" }`
(respects `.prettierignore`)
## Test plan
- [x] Hook runs on commit — verified: badly formatted file auto-fixed
during commit
- [x] `pnpm install` sets up hooks correctly via `prepare` script
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>