From 21442485ff6ebbf41fc4ba04fec9f58576ad1fa2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 30 Nov 2024 09:57:25 +0000 Subject: [PATCH 1/3] chore(deps-dev): bump husky from 8.0.3 to 9.1.7 Bumps [husky](https://github.com/typicode/husky) from 8.0.3 to 9.1.7. - [Release notes](https://github.com/typicode/husky/releases) - [Commits](https://github.com/typicode/husky/compare/v8.0.3...v9.1.7) --- updated-dependencies: - dependency-name: husky dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4102bde..b5f965e 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", From eb6335d0d535ee82c2bddc17f8253ff33721c732 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 30 Nov 2024 18:02:39 +0800 Subject: [PATCH 2/3] fix pre-commit --- .husky/pre-commit | 3 --- 1 file changed, 3 deletions(-) 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 From f3c44204d0426e7c64d51a04e7d09aab063fbd94 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 30 Nov 2024 18:03:01 +0800 Subject: [PATCH 3/3] fix pre-commit --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index b5f965e..b826264 100644 --- a/package.json +++ b/package.json @@ -85,8 +85,7 @@ }, "lint-staged": { "**/*.{js,jsx,tsx,ts,md,json}": [ - "prettier --write", - "git add" + "prettier --write" ] }, "cnpm": {