update git hook

This commit is contained in:
mwx816443 2020-06-12 08:27:43 +08:00
parent bcecbab4a6
commit 7bd4722023
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,8 @@
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src",
"lint": "eslint --ext .js,.vue src && stylelint --aei .vue,.html src",
"lint:eslint": "eslint --ext .js,.vue src",
"lint:style": "stylelint --aei .vue,.html src",
"test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit",
@ -25,6 +26,10 @@
"src/**/*.{js,vue}": [
"eslint --fix",
"git add"
],
"src/**/*.{css,scss,vue,html}": [
"stylelint",
"git add"
]
},
"keywords": [