diff --git a/.husky/pre-commit b/.husky/pre-commit index d24fdfc..2312dc5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx lint-staged diff --git a/package.json b/package.json index 9a8723b..aadc6ec 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "eslint": "^7.0.0", "father": "^4.3.7", "gh-pages": "^6.2.0", - "husky": "^8.0.1", + "husky": "^9.1.7", "less": "^3.10.3", "lint-staged": "^13.0.3", "np": "^10.1.0", @@ -85,8 +85,7 @@ }, "lint-staged": { "**/*.{js,jsx,tsx,ts,md,json}": [ - "prettier --write", - "git add" + "prettier --write" ] }, "cnpm": {