From 60ce720b306b90015dce107e2fc84798a6b6d676 Mon Sep 17 00:00:00 2001 From: Yurun Date: Mon, 19 Feb 2024 10:19:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20web=20=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=9A=84=20husky=20=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/.husky/commit-msg | 4 ---- web/.husky/pre-commit | 4 ---- web/package.json | 4 +--- 3 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 web/.husky/commit-msg delete mode 100644 web/.husky/pre-commit diff --git a/web/.husky/commit-msg b/web/.husky/commit-msg deleted file mode 100644 index 4002db7..0000000 --- a/web/.husky/commit-msg +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx --no -- commitlint --edit diff --git a/web/.husky/pre-commit b/web/.husky/pre-commit deleted file mode 100644 index d24fdfc..0000000 --- a/web/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx lint-staged diff --git a/web/package.json b/web/package.json index 26c5950..623ae06 100644 --- a/web/package.json +++ b/web/package.json @@ -19,8 +19,7 @@ "lint": "eslint .", "lint:fix": "eslint . --fix", "bootstrap": "pnpm install && pnpm run common:prepare", - "common:cleanup": "rimraf node_modules && rimraf pnpm-lock.yaml", - "common:prepare": "husky install" + "common:cleanup": "rimraf node_modules && rimraf pnpm-lock.yaml" }, "dependencies": { "@traptitech/markdown-it-katex": "^3.6.0", @@ -58,7 +57,6 @@ "axios": "^1.4.0", "crypto-js": "^4.1.1", "eslint": "^8.46.0", - "husky": "^8.0.3", "less": "^4.1.3", "lint-staged": "^13.2.3", "markdown-it-link-attributes": "^4.0.1",