lefthook.yml
Rama main · réplica de lectura del repositorio original.
pre-commit:
parallel: true
commands:
go-fmt:
glob: "*.go"
run: PATH="$HOME/go/bin:$PATH" gofumpt -w {staged_files}
stage_fixed: true
frontend-fmt:
root: "frontend/"
run: node_modules/.bin/prettier --write --ignore-unknown {staged_files}
stage_fixed: true
secrets:
run: gitleaks git --staged --no-banner --redact
commit-msg:
commands:
commitlint:
run: npx --yes --package @commitlint/[email protected] --package @commitlint/[email protected] commitlint --edit {1}
pre-push:
commands:
frontend-knip:
run: cd frontend && node_modules/.bin/knip