参考 enterprise-system git 体系,补齐炼境本地 git hooks: - pre-commit: pnpm typecheck(tsc --noEmit) - commit-msg: Conventional Commits 格式强校验
12 lines
186 B
YAML
12 lines
186 B
YAML
pre-commit:
|
|
parallel: true
|
|
commands:
|
|
typecheck:
|
|
glob: "src/**/*.{ts,tsx}"
|
|
run: pnpm typecheck
|
|
|
|
commit-msg:
|
|
scripts:
|
|
"check-conventional.sh":
|
|
runner: bash
|