Merge pull request #20 from Chanzhaoyu/dev

fix: 修复代码提交前验证流程
main
Redon 2 years ago committed by GitHub
commit 1d74717beb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -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

@ -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"
] ]
} }
} }

Loading…
Cancel
Save