From d55b8b69cf261db2a1fce4c94c13abae77b2931b Mon Sep 17 00:00:00 2001 From: LSF <1920392080@qq.com> Date: Thu, 10 Jul 2025 11:41:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/pre-commit | 5 ++++- package.json | 4 ++-- src/App.vue | 13 ++++++------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 98475b5..35e85ce 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,4 @@ -pnpm test +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +pnpm run format diff --git a/package.json b/package.json index 64a46f7..51f5170 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "lint:eslint": "eslint src/**/*.{ts,vue} --cache --fix", "lint:style": "stylelint src/**/*.{css,scss,vue} --cache --fix", "commitlint": "commitlint --config commitlint.config.cjs -e -V", - "prepare": "husky" + "prepare": "husky && husky install" }, "dependencies": { "element-plus": "^2.10.3", @@ -33,7 +33,7 @@ "eslint-plugin-prettier": "^5.5.1", "eslint-plugin-vue": "^10.3.0", "globals": "^16.3.0", - "husky": "^9.1.7", + "husky": "^8.0.0", "postcss": "^8.5.6", "postcss-html": "^1.8.0", "postcss-scss": "^4.0.9", diff --git a/src/App.vue b/src/App.vue index 6d0824c..3185144 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,13 +1,12 @@ - - - {{ a ? true : false}} + + + + + \ No newline at end of file