From dedf8e7ced05effe91daed02834a7c6960b44620 Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 13 Mar 2019 16:08:19 +0800 Subject: [PATCH] update husky --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a18a8a33..55af297e 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,13 @@ "lint": "eslint --ext .js,.vue src", "test": "npm run lint", "test:unit": "vue-cli-service test:unit", - "precommit": "lint-staged", "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml" }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, "lint-staged": { "src/**/*.{js,vue}": [ "eslint --fix", @@ -80,7 +84,7 @@ "connect": "3.6.6", "eslint": "5.15.1", "eslint-plugin-vue": "5.2.2", - "husky": "0.14.3", + "husky": "1.3.1", "lint-staged": "7.2.2", "mockjs": "1.0.1-beta3", "node-sass": "^4.9.0",