test测试提交

This commit is contained in:
WANGFAN\wangf 2024-12-05 17:24:41 +08:00
parent efe206ac47
commit 742fd60b2a
18 changed files with 111 additions and 160 deletions

1
.husky/_/.gitignore vendored
View File

@ -1 +0,0 @@
*

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

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

View File

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

4
.husky/commit-msg Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname "$0")/husky.sh"
npm run lint:lint-staged

View File

@ -26,19 +26,11 @@
"preview": "vite preview", "preview": "vite preview",
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src", "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:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
"lint:lint-staged": "lint-staged",
"fix": "eslint src --fix", "fix": "eslint src --fix",
"lint-staged": "lint-staged",
"prepare": "husky install", "prepare": "husky install",
"preinstall": "npx only-allow pnpm" "preinstall": "npx only-allow pnpm"
}, },
"lint-staged": {
"src/**/*.{ts,vue}": [
"eslint"
],
"test/**/*.{ts,tsx,js,vue}": [
"eslint"
]
},
"dependencies": { "dependencies": {
"@arco-design/color": "^0.4.0", "@arco-design/color": "^0.4.0",
"@codemirror/lang-javascript": "^6.2.2", "@codemirror/lang-javascript": "^6.2.2",