From 5b4a65a6972eb19774ff988ab2ccb74ebfca9a4b Mon Sep 17 00:00:00 2001 From: xobotyi Date: Mon, 25 Nov 2024 16:57:22 +0100 Subject: [PATCH] dev: fix husky's configs and setup --- .husky/commit-msg | 3 --- .husky/pre-commit | 3 --- package.json | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index abc55eef..e232fe61 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,6 +1,3 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - if [ "$CI" = "true" ] then # disable commitlint for CI environments diff --git a/.husky/pre-commit b/.husky/pre-commit index d2ae35e8..37236231 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - yarn lint-staged diff --git a/package.json b/package.json index 762dbfa3..8e79166f 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "semantic-release": "^24.2.0" }, "scripts": { - "prepare": "husky install", + "prepare": "husky", "commit": "git-cz", "lint": "eslint", "lint:fix": "yarn lint --fix"