From cdd45c422217860ed2163d85294f7c9c5a83be79 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Fri, 12 Mar 2021 15:21:15 +0800 Subject: [PATCH] chore: update husky --- .gitignore | 1 + package.json | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a924c26cb..86ef043fe 100644 --- a/.gitignore +++ b/.gitignore @@ -63,6 +63,7 @@ _site yarn.lock package-lock.json /coverage +.husky # 备份文件 /components/test/* diff --git a/package.json b/package.json index 4c4d1434a..00c4257ab 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,11 @@ "codecov": "codecov", "postinstall": "node scripts/postinstall || echo \"ignore\"" }, + "husky": { + "hooks": { + "pre-commit": "pretty-quick --staged" + } + }, "repository": { "type": "git", "url": "git+https://github.com/vueComponent/ant-design-vue.git" @@ -131,7 +136,7 @@ "gulp-strip-code": "^0.1.4", "gulp-typescript": "^6.0.0-alpha.1", "html-webpack-plugin": "^3.2.0", - "husky": "^5.0.0", + "husky": "^5.1.3", "ignore-emit-webpack-plugin": "^2.0.6", "istanbul-instrumenter-loader": "^3.0.0", "jest": "^26.0.0",