fix: 在 lint-staged 中添加 oxlint 修复命令
All checks were successful
/ build-and-deploy-to-vercel (push) Successful in 2m56s
/ surge (push) Successful in 2m23s
/ playwright (push) Successful in 48s
/ lint-build-and-check (push) Successful in 4m27s

This commit is contained in:
mini2024
2025-04-05 16:31:42 +08:00
parent f0c6290e89
commit 4ee2048ae4
2 changed files with 4 additions and 2 deletions

View File

@ -29,7 +29,8 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "never",
"source.fixAll.stylelint": "never",
"source.fixAll.oxc": "never"
"source.fixAll.oxc": "never",
"source.organizeImports": "never"
},
"editor.formatOnSave": false
}

View File

@ -32,7 +32,8 @@
"lint-staged": {
"src/**/*.{js,ts,tsx,vue}": [
"prettier --write",
"eslint --fix"
"eslint --fix",
"oxlint --fix"
]
},
"pnpm": {