feat: 添加 oxlint 配置文件并更新 lint 脚本

This commit is contained in:
mini2024
2025-03-31 01:41:17 +08:00
parent 3adafb58d5
commit 5ba87212b9
3 changed files with 11 additions and 2 deletions

View File

@@ -12,7 +12,9 @@
"format": "prettier --write src/",
"type-check": "vue-tsc --build",
"lint": "run-s lint:*",
"_lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
"_oxlint_cfg": "oxlint . --fix --ignore-path=.gitignore --print-config",
"__oxlint_-D": "oxlint . --fix --deny=correctness",
"lint:oxlint": "oxlint . --fix",
"lint:eslint": "eslint . --fix",
"prepare": "husky",
"playwright": "playwright test",