mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 08:00:34 +00:00
build: add prettier to git hooks
This commit is contained in:
@@ -30,6 +30,10 @@
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{ts,tsx,js,vue,less}": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
],
|
||||
"*.{ts,tsx,js,vue}": [
|
||||
"eslint --fix",
|
||||
"git add"
|
||||
|
Reference in New Issue
Block a user