[Build] update lint-staged (#1415)

[Build] update lint-staged
This commit is contained in:
neverland 2018-07-06 10:25:28 +08:00 committed by GitHub
parent a0602c81d5
commit 8b511dcc7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,8 +32,12 @@
"precommit": "lint-staged"
},
"lint-staged": {
"./packages/**/*.{js,vue}": [
"eslint --fix",
"*.{js,vue}": [
"eslint",
"git add"
],
"*.{vue,css}": [
"stylelint",
"git add"
]
},