test测试提交
This commit is contained in:
parent
efe206ac47
commit
742fd60b2a
1
.husky/_/.gitignore
vendored
1
.husky/_/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
20
.husky/_/h
20
.husky/_/h
@ -1,20 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
[ "$HUSKY" = "2" ] && set -x
|
||||
h="${0##*/}"
|
||||
s="${0%/*/*}/$h"
|
||||
|
||||
[ ! -f "$s" ] && exit 0
|
||||
|
||||
for f in "${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh" "$HOME/.huskyrc"; do
|
||||
# shellcheck disable=SC1090
|
||||
[ -f "$f" ] && . "$f"
|
||||
done
|
||||
|
||||
[ "${HUSKY-}" = "0" ] && exit 0
|
||||
|
||||
sh -e "$s" "$@"
|
||||
c=$?
|
||||
|
||||
[ $c != 0 ] && echo "husky - $h script failed (code $c)"
|
||||
[ $c = 127 ] && echo "husky - command not found in PATH=$PATH"
|
||||
exit $c
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
. "${0%/*}/h"
|
||||
4
.husky/commit-msg
Normal file
4
.husky/commit-msg
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname "$0")/husky.sh"
|
||||
|
||||
npm run lint:lint-staged
|
||||
10
package.json
10
package.json
@ -26,19 +26,11 @@
|
||||
"preview": "vite preview",
|
||||
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",
|
||||
"lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
|
||||
"lint:lint-staged": "lint-staged",
|
||||
"fix": "eslint src --fix",
|
||||
"lint-staged": "lint-staged",
|
||||
"prepare": "husky install",
|
||||
"preinstall": "npx only-allow pnpm"
|
||||
},
|
||||
"lint-staged": {
|
||||
"src/**/*.{ts,vue}": [
|
||||
"eslint"
|
||||
],
|
||||
"test/**/*.{ts,tsx,js,vue}": [
|
||||
"eslint"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@arco-design/color": "^0.4.0",
|
||||
"@codemirror/lang-javascript": "^6.2.2",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user