build: add prettier to git hooks

This commit is contained in:
陈嘉涵 2020-01-19 15:11:22 +08:00
parent f20058ed2d
commit 04c49b645a

View File

@ -30,6 +30,10 @@
}
},
"lint-staged": {
"*.{ts,tsx,js,vue,less}": [
"prettier --write",
"git add"
],
"*.{ts,tsx,js,vue}": [
"eslint --fix",
"git add"