ci: husky 调整
This commit is contained in:
parent
5fce7ee1c2
commit
9ae14472ab
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
pnpm commitlint --edit $1
|
||||
cd frontend && npx commitlint --edit $1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npm run lint-staged
|
||||
cd frontend && npm run lint-staged
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
||||
"lint:styles": "stylelint 'src/**/*.{vue,html,css,scss,less}' --fix",
|
||||
"lint-staged": "npx lint-staged",
|
||||
"prepare": "husky install",
|
||||
"prepare": "cd .. && husky install frontend/.husky",
|
||||
"test": "vitest",
|
||||
"coverage": "vitest run --coverage"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue