Skip to content

Commit e84d47b

Browse files
renovate[bot]aladdin-add
andauthoredMar 25, 2024··
chore: update dependency husky to v9 (#208)
* chore: update dependency husky to v9 * chore: update as its migration docs --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: 唯然 <weiran.zsd@outlook.com>
1 parent 0b8aeb3 commit e84d47b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
 

‎.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx lint-staged

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"eslint-plugin-eslint-plugin": "^5.2.1",
3636
"eslint-plugin-n": "file:.",
3737
"fast-glob": "^3.2.12",
38-
"husky": "^8.0.3",
38+
"husky": "^9.0.0",
3939
"lint-staged": "^15.2.0",
4040
"markdownlint-cli": "^0.39.0",
4141
"mocha": "^10.2.0",
@@ -59,7 +59,7 @@
5959
"lint:js": "eslint .",
6060
"new": "node scripts/new-rule",
6161
"postversion": "git push && git push --tags",
62-
"prepare": "npx husky install",
62+
"prepare": "husky",
6363
"pretest": "npm run -s lint",
6464
"preversion": "npm test",
6565
"test": "nyc npm run -s test:_mocha",

0 commit comments

Comments
 (0)
Please sign in to comment.