mirror of
https://github.com/johndoe6345789/postgres.git
synced 2026-04-24 13:55:00 +00:00
Initial commit
This commit is contained in:
18
lefthook.yml
Normal file
18
lefthook.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user