From 7b8e58e0ec81e99517cbca41e04930f013773380 Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Fri, 19 Jul 2024 10:42:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dhusky=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/commit-msg | 5 +---- .husky/pre-commit | 8 +------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index c00eb35..34eed8b 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/husky.sh" - -pnpm commitlint --edit "$1" +npx --no -- commitlint --edit $1 \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index ae8ae36..d96ed69 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,8 +1,2 @@ -#!/bin/sh -. "$(dirname "$0")/husky.sh" - -[ -n "$CI" ] && exit 0 - -# Format and submit code according to lintstagedrc.js configuration npm run ts:check -npm run lint:lint-staged +npm run lint:lint-staged \ No newline at end of file