Files
metabuilder/frontends/postgres/lefthook.yml
2026-03-09 22:30:41 +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