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": { "husky": {
"hooks": { "hooks": {
"pre-commit": "npm run lint-staged", "pre-commit": "lint-staged"
"precommit": "npm run lint-staged"
} }
}, },
"lint-staged": { "lint-staged": {
"src/**/*.{js,vue}": [ "src/**/*.{js,vue}": [
"npm run lint", "eslint --fix",
"git add" "git add"
] ]
}, },