mirror of
https://github.com/jackhh66/ChatGPT_Web_accessToken.git
synced 2026-11-27 02:29:35 +00:00
fix: 修复代码提交前验证流程
This commit is contained in:
1 parent
910c19b02e
commit
e35abb1c98
3 files changed
+4
-4
No files matched your search
Regular → Executable
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
pnpm exec commitlint --config .commitlintrc.json --edit "${1}"
|
npx --no -- commitlint --edit
|
||||||
Regular → Executable
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
pnpm exec lint-staged
|
npx lint-staged
|
||||||
+2
-2
@@ -48,8 +48,8 @@
|
|||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{js,ts,jsx,tsx,vue}": [
|
"*.{js,ts,jsx,tsx,vue}": [
|
||||||
"pnpm run lint:fix",
|
"pnpm lint:fix",
|
||||||
"pnpm run type-check"
|
"pnpm type-check"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user