chore: 添加 husky 并配置 pre-commit 钩子
- 添加 husky 依赖用于 Git 钩子管理 - 配置 pre-commit 钩子自动执行 eslint 检查 - 在 package.json 中添加 prepare 脚本自动安装 husky
This commit is contained in:
@@ -69,7 +69,8 @@
|
||||
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
|
||||
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
|
||||
"type-check": "vue-tsc --noEmit",
|
||||
"openapi-ts-request": "openapi-ts"
|
||||
"openapi-ts-request": "openapi-ts",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"lint-staged": {
|
||||
"**/*.{html,vue,ts,cjs,json,md}": [
|
||||
@@ -134,6 +135,7 @@
|
||||
"@vue/runtime-core": "^3.4.21",
|
||||
"@vue/tsconfig": "^0.1.3",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^15.2.10",
|
||||
"openapi-ts-request": "^1.1.2",
|
||||
"oxlint": "^0.1.0",
|
||||
|
||||
Reference in New Issue
Block a user