From e84d47b98de65eb77ac96cef44af2adb901acac0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 14:04:18 +0800 Subject: [PATCH] chore: update dependency husky to v9 (#208) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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: 唯然 --- .husky/pre-commit | 3 --- package.json | 4 ++-- 2 files changed, 2 insertions(+), 5 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 73e32a26..e5c3056f 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", @@ -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",