From d77d7f76517cdf01789be5b9b182562e07fdd4e9 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Mon, 15 Jul 2024 18:28:55 +0800 Subject: [PATCH] chore: update husky configuration --- .husky/pre-commit | 3 --- package.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af2198..2312dc58 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx lint-staged diff --git a/package.json b/package.json index 07689de5..d11e1b36 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "lint:eslint": "eslint --cache --max-warnings 0 \"{src,tests,types}/**/*.{vue,js,jsx,ts,tsx}\" --fix", "lint:prettier": "prettier --write \"{src,tests,types}/**/*.{vue,js,jsx,ts,tsx,json,css,less,scss,html,md}\"", "lint": "pnpm lint:eslint && pnpm lint:prettier", - "prepare": "husky install", + "prepare": "husky", "test": "vitest" }, "dependencies": {