mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 08:57:19 +08:00
chore: add lint-staged command
This commit is contained in:
parent
77a1a47110
commit
0e97b3df0e
@ -8,12 +8,13 @@
|
|||||||
"build": "cross-env vite build",
|
"build": "cross-env vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"preview:build": "npm run build && 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": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"commit-msg": "node scripts/verify-commit.js",
|
"commit-msg": "node scripts/verify-commit.js",
|
||||||
"pre-commit": "lint-staged"
|
"pre-commit": "npm run lint-staged"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user