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 @@ - - + + + + \ No newline at end of file