diff --git a/package.json b/package.json index 616b3d44d2909fa94f2fa65c84fdf2e29725744f..9f210baeb447b26088e09600c3d47f16d5fd216f 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" + } + } }