chore: 添加 lint-staged

This commit is contained in:
ChenZhaoYu
2023-02-13 11:03:10 +08:00
parent f910b5f8a4
commit 11544ff24b
7 changed files with 1118 additions and 3 deletions

4
.husky/commit-msg Normal file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm exec commitlint --config .commitlintrc.json --edit "${1}"

4
.husky/pre-commit Normal file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm exec lint-staged