keel/.husky.yaml
Kevin Franklin Kim f2ed4bd229 chore: add husky
2021-12-14 16:56:34 +01:00

17 lines
390 B
YAML

hooks:
pre-commit:
- golangci-lint run --fast
- husky lint-staged
commit-msg:
- husky lint-commit
lint-staged:
'*.go':
- goimports -l -w
- gofmt -l -w
lint-commit:
email: '^(.+@bestbytes.com)$'
types: '^(feat|fix|build|chore|docs|perf|refactor|revert|style|test|wip)$'
header: '^(?P<type>\w+)(\((?P<scope>[\w/.-]+)\))?(?P<breaking>!)?:( +)?(?P<header>.+)'