perf(cli): replace lint-staged with nano-staged (#10778)

This commit is contained in:
neverland
2022-07-02 22:57:41 +08:00
committed by GitHub
parent 28e8b72ccd
commit 2e27c67c76
9 changed files with 28 additions and 156 deletions

View File

@@ -20,11 +20,11 @@
"author": "",
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-commit": "nano-staged",
"commit-msg": "vant-cli commit-lint"
}
},
"lint-staged": {
"nano-staged": {
"*.{ts,tsx,js,jsx,vue}": "eslint --fix",
"*.{vue,css,less,scss}": "stylelint --fix"
},