From 179f550daa159fcb8ab80adf66dab335f8f07795 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 1 Feb 2024 08:02:41 +0100 Subject: [PATCH] chore(deps): update dependency husky to v9 (#523) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency husky to v9 * upgrade to latest husky --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: François Hodierne --- .husky/pre-commit | 5 +---- package-lock.json | 12 ++++++------ package.json | 5 +++-- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index cf0c46b93..0100eae14 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx --no-install lint-staged +npm run lint-staged diff --git a/package-lock.json b/package-lock.json index 203c91f40..2de31d6c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-simple-import-sort": "^10.0.0", - "husky": "^8.0.3", + "husky": "^9.0.7", "jest": "^29.7.0", "lint-staged": "^15.1.0", "nodemon": "^3.0.1", @@ -7568,15 +7568,15 @@ } }, "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz", + "integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.js" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" diff --git a/package.json b/package.json index c60a6c447..43f098b98 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,8 @@ "prettier:write": "npm run prettier -- --write", "start": "node dist/server", "test:server": "TZ=UTC ./scripts/run_test.sh", - "prepare": "husky install", + "prepare": "husky", + "lint-staged": "lint-staged", "depcheck": "npx depcheck" }, "devDependencies": { @@ -74,7 +75,7 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-simple-import-sort": "^10.0.0", - "husky": "^8.0.3", + "husky": "^9.0.7", "jest": "^29.7.0", "lint-staged": "^15.1.0", "nodemon": "^3.0.1",