From 0758cf4218566b2d184e681fcf51e2b39351a5ad Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 14 Oct 2018 13:28:17 +0800 Subject: [PATCH] upgrade husky hooks config --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 616b3d44..9f210bae 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "description": "An out-of-box UI solution for enterprise applications", "private": true, "scripts": { - "precommit": "npm run lint-staged", "presite": "node ./scripts/generateMock.js && cd functions && npm install", "start": "cross-env APP_TYPE=site umi dev", "start:no-mock": "cross-env MOCK=none umi dev", @@ -104,5 +103,10 @@ "> 1%", "last 2 versions", "not ie <= 10" - ] + ], + "husky": { + "hooks": { + "pre-commit": "npm run lint-staged" + } + } } -- GitLab