Merge pull request #20 from Chanzhaoyu/dev

fix: 修复代码提交前验证流程
This commit is contained in:
Redon authored and GitHub committed 2023-02-13 20:55:55 +08:00
commit 1d74717beb
3 files changed
+4 -4

No files matched your search

Regular → Executable
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm exec commitlint --config .commitlintrc.json --edit "${1}"
npx --no -- commitlint --edit
Regular → Executable
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm exec lint-staged
npx lint-staged
+2 -2
View File
@@ -48,8 +48,8 @@
},
"lint-staged": {
"*.{js,ts,jsx,tsx,vue}": [
"pnpm run lint:fix",
"pnpm run type-check"
"pnpm lint:fix",
"pnpm type-check"
]
}
}