From 3e5863a51a0008a32cc9952e1862112570c2f33b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 24 Mar 2024 09:09:17 +0000 Subject: [PATCH 1/2] chore: update dependency husky to v9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7bd938a2..cec702d1 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "eslint-plugin-eslint-plugin": "^5.2.1", "eslint-plugin-n": "file:.", "fast-glob": "^3.2.12", - "husky": "^8.0.3", + "husky": "^9.0.0", "lint-staged": "^15.2.0", "markdownlint-cli": "^0.39.0", "mocha": "^10.2.0", From d785b73e3eb8fff332638ac5433d1f87adec2a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Mon, 25 Mar 2024 14:00:21 +0800 Subject: [PATCH 2/2] chore: update as its migration docs --- .husky/pre-commit | 3 --- package.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af2198..2312dc58 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx lint-staged diff --git a/package.json b/package.json index cec702d1..cc7d1424 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "lint:js": "eslint .", "new": "node scripts/new-rule", "postversion": "git push && git push --tags", - "prepare": "npx husky install", + "prepare": "husky", "pretest": "npm run -s lint", "preversion": "npm test", "test": "nyc npm run -s test:_mocha",