diff --git a/.husky/pre-commit b/.husky/pre-commit index 9f5c7d2442..c16c90c8e5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -# npx lint-staged +npm run lint:changed-feature-branch diff --git a/.husky/pre-push b/.husky/pre-push index c10402243b..f9908b77da 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,5 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -# fetching latest changes `git fetch -a --depth 100` to ensure the base branch is up to date -# git fetch -a --depth 100 && npm run lint:changed-feature-branch && npm run test:changed-feature-branch +git fetch -a --depth 100 && npm run lint:changed-feature-branch && npm run test:changed-feature-branch diff --git a/package-lock.json b/package-lock.json index 1279bb9626..5e972b8386 100644 --- a/package-lock.json +++ b/package-lock.json @@ -123,7 +123,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-testing-library": "^6.1.2", "glob": "^10.3.10", - "husky": "^8.0.3", + "husky": "^9.0.11", "hygen": "^6.2.11", "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", @@ -14937,15 +14937,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.11", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", + "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.mjs" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" diff --git a/package.json b/package.json index 2dde758086..666385e1e6 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-testing-library": "^6.1.2", "glob": "^10.3.10", - "husky": "^8.0.3", + "husky": "^9.0.11", "hygen": "^6.2.11", "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0",