- 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>
31 lines
794 B
YAML
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)$
|