mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
build: add prettier to git hooks
This commit is contained in:
parent
f20058ed2d
commit
04c49b645a
@ -30,6 +30,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
|
"*.{ts,tsx,js,vue,less}": [
|
||||||
|
"prettier --write",
|
||||||
|
"git add"
|
||||||
|
],
|
||||||
"*.{ts,tsx,js,vue}": [
|
"*.{ts,tsx,js,vue}": [
|
||||||
"eslint --fix",
|
"eslint --fix",
|
||||||
"git add"
|
"git add"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user