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 7bd938a2..cc7d1424 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",