update husky

This commit is contained in:
Pan 2019-03-13 16:08:19 +08:00
parent 6c1c03c828
commit dedf8e7ced
1 changed files with 6 additions and 2 deletions

View File

@ -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",