From c80ae113e2c7223a9ce32ace255a2cf7a8ede61a Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 24 Feb 2021 21:33:04 +0800 Subject: [PATCH] Uninstall husky --- .githooks/pre-commit | 1 + package.json | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) create mode 100755 .githooks/pre-commit diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100755 index 0000000..c56e0af --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1 @@ +npm run eslint && npm test diff --git a/package.json b/package.json index af403d9..39e7c40 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ ], "scripts": { "eslint": "eslint scripts/ source/js test/", + "prepare": "git config --local core.hooksPath .githooks/", "stylint": "stylint source/css/", "test": "mocha test/index.js" }, @@ -35,14 +36,8 @@ "eslint": "7.19.0", "hexo": "5.3.0", "hexo-renderer-marked": "3.3.0", - "husky": "4.3.8", "js-yaml": "4.0.0", "mocha": "8.2.1", "stylint": "2.0.0" - }, - "husky": { - "hooks": { - "pre-commit": "npm run eslint && npm test" - } } }