From 1cdf1e25cd8b5a7c4a1fc6d2bc5e128ee63ded98 Mon Sep 17 00:00:00 2001 From: Yaroslav Chuiko <32570823+YaroslavChuiko@users.noreply.github.com> Date: Wed, 31 Jul 2024 16:48:39 +0300 Subject: [PATCH] updated husky package, updated husky hooks (#2218) --- .husky/pre-commit | 3 --- .husky/pre-push | 3 --- package.json | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index d4a43dd13..87ea02a11 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npm run pre-commit diff --git a/.husky/pre-push b/.husky/pre-push index 879e9351b..e37998f96 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npm run test diff --git a/package.json b/package.json index 159950808..70e0efcf1 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "eslint-plugin-typescript": "^0.14.0", "eslint-plugin-vitest-globals": "^1.5.0", "globals": "^15.8.0", - "husky": "^8.0.3", + "husky": "^9.1.2", "jsdom": "^22.1.0", "lint-staged": "^15.0.2", "prettier": "^3.0.3", @@ -103,7 +103,7 @@ "lint-fix": "eslint src/**/*.{js,jsx,ts,tsx} --fix", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook -o build-story", - "prepare": "husky install", + "prepare": "husky", "pre-commit": "lint-staged", "compile-scss": "node src/scss/src/scripts/compile-scss.js --logger" },