mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 16:04:04 +00:00
build: add prettier to git hooks
This commit is contained in:
@@ -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"
|
||||||
|
Reference in New Issue
Block a user