diff --git a/.husky/pre-commit b/.husky/pre-commit index dc0378c3..495214db 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,2 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" +yarn lint-staged -yarn lint-staged \ No newline at end of file diff --git a/package.json b/package.json index bdbcdca2..cd4d4c92 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "css-loader": "6.9.1", "cssnano": "6.0.3", "html-webpack-plugin": "5.6.0", - "husky": "8.0.3", + "husky": "9.0.6", "lint-staged": "15.2.0", "mini-css-extract-plugin": "2.7.7", "postcss": "8.4.33", @@ -40,7 +40,7 @@ "build:stats": "webpack --json --define-process-env-node-env production > webpack-stats.json", "cosmos": "node --experimental-policy=cosmos-policy.json node_modules/react-cosmos/bin/cosmos.js --port 5001", "build:cosmos": "node --experimental-policy=cosmos-policy.json node_modules/react-cosmos/bin/cosmos-export.js", - "postinstall": "husky install", + "postinstall": "husky", "start": "webpack serve" }, "repository": { diff --git a/yarn.lock b/yarn.lock index 49f628f4..96bc68ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3314,10 +3314,10 @@ human-signals@^5.0.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28" integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ== -husky@8.0.3: - version "8.0.3" - resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184" - integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== +husky@9.0.6: + version "9.0.6" + resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.6.tgz#cee0245d60480b12279cf492ec6cfc1aeb7fa759" + integrity sha512-EEuw/rfTiMjOfuL7pGO/i9otg1u36TXxqjIA6D9qxVjd/UXoDOsLor/BSFf5hTK50shwzCU3aVVwdXDp/lp7RA== iconv-lite@0.4.24: version "0.4.24"