mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-07-19 02:34:21 +00:00
fix: 修复代码提交前验证流程
This commit is contained in:
2
.husky/commit-msg
Normal file → Executable file
2
.husky/commit-msg
Normal file → Executable 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
|
||||
|
2
.husky/pre-commit
Normal file → Executable file
2
.husky/pre-commit
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
pnpm exec lint-staged
|
||||
npx lint-staged
|
||||
|
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user