access/.pre-commit-config.yaml
David Soria Parra 3c1d641add
Add prettier formatting and CI validation checks
- Add prettier with consistent formatting config
- Add format and format:check npm scripts
- Add prettier pre-commit hook
- Add validation and formatting checks to CI workflow
- Reformat all TypeScript and JSON files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 10:01:28 +00:00

31 lines
794 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-merge-conflict
- repo: local
hooks:
- id: typescript-check
name: TypeScript type check
entry: npm run build
language: system
pass_filenames: false
files: \.(ts|tsx)$
- id: validate-config
name: Validate team references
entry: npm run validate
language: system
pass_filenames: false
files: ^src/config/
- id: prettier
name: Prettier formatting
entry: npx prettier --write --ignore-unknown
language: system
types: [text]
files: \.(ts|tsx|js|jsx|json|md)$