chore: add lint-staged command

This commit is contained in:
LZHD 2021-07-06 01:04:03 +08:00 committed by 踏学吾痕
parent 77a1a47110
commit 0e97b3df0e

View File

@ -8,12 +8,13 @@
"build": "cross-env vite build",
"preview": "vite preview",
"preview:build": "npm run build && vite preview",
"lint": "eslint --ext .js,.jsx,.vue,.ts,.tsx src"
"lint": "eslint --ext .js,.jsx,.vue,.ts,.tsx src",
"lint-staged": "lint-staged"
},
"husky": {
"hooks": {
"commit-msg": "node scripts/verify-commit.js",
"pre-commit": "lint-staged"
"pre-commit": "npm run lint-staged"
}
},
"dependencies": {