Files
postgres/lefthook.yml
2026-01-08 01:04:26 +00:00

19 lines
402 B
YAML

# Validate commit messages
commit-msg:
commands:
commitlint:
run: npx --no -- commitlint --edit {1}
# Validate content before committing
pre-commit:
commands:
lint:
glob: '*'
run: npx --no -- eslint --fix --no-warn-ignored {staged_files}
stage_fixed: true
priority: 1
check-types:
glob: '*.{ts,tsx}'
run: npm run check:types
priority: 2