This commit is contained in:
huzhushan 2021-04-19 19:17:04 +08:00
parent d5cfa5f7c8
commit 9c0661929f

View File

@ -47,13 +47,12 @@
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged",
"precommit": "npm run lint-staged"
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,vue}": [
"npm run lint",
"eslint --fix",
"git add"
]
},