chore: 更新 lint-staged 配置以优化性能

- 为 prettier 和 oxlint 添加 --cache 标志以提高执行速度
- 调整文件匹配模式,将 css 和 scss 文件移至 prettier 处理
- 添加排除 node_modules 和 dist 目录的规则
This commit is contained in:
feige996 2025-06-03 19:40:47 +08:00
parent 0fbe59fe92
commit 901c677946

View File

@ -73,12 +73,14 @@
"prepare": "husky"
},
"lint-staged": {
"**/*.{html,vue,ts,cjs,json,md}": [
"prettier --write"
"**/*.{html,cjs,json,md,scss,css,txt}": [
"prettier --write --cache"
],
"**/*.{vue,js,ts,jsx,tsx,vue,css,scss,html}": [
"oxlint --fix"
]
"**/*.{vue,js,ts}": [
"oxlint --fix",
"prettier --write --cache"
],
"!**/{node_modules,dist}/**": []
},
"resolutions": {
"bin-wrapper": "npm:bin-wrapper-china"