feat: 更新 VSCode 配置,添加 oxc 插件,调整 eslint 配置,优化构建和类型检查命令
Some checks failed
/ playwright (push) Failing after 2m19s
/ depcheck (push) Successful in 1m30s
/ build-and-deploy-to-vercel (push) Successful in 1m29s

This commit is contained in:
严浩
2024-12-25 23:44:18 +08:00
parent eed0f4f3f4
commit 49e18facda
12 changed files with 341 additions and 168 deletions

View File

@ -8,8 +8,10 @@
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --fix",
"type-check": "vue-tsc --build",
"lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
"lint:eslint": "eslint . --fix",
"lint": "run-s lint:*",
"format": "prettier --write src/",
"prepare": "husky",
"playwright": "playwright test",
@ -40,6 +42,7 @@
"@vueuse/core": "^12.2.0",
"alova": "^3.2.7",
"axios": "^1.7.9",
"consola": "^3.3.1",
"dayjs": "^1.11.13",
"jsencrypt": "^3.3.2",
"mitt": "^3.0.1",
@ -73,12 +76,13 @@
"@types/jsdom": "^21.1.7",
"@types/node": "^22.10.2",
"@types/nprogress": "^0.2.3",
"@unocss/preset-rem-to-px": "^0.65.2",
"@unocss/preset-rem-to-px": "^0.65.3",
"@vant/auto-import-resolver": "^1.2.1",
"@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue-jsx": "^4.1.1",
"@vitest/eslint-plugin": "^1.1.20",
"@vue/eslint-config-prettier": "^10.1.0",
"@vue/eslint-config-typescript": "^14.1.4",
"@vue/eslint-config-typescript": "^14.2.0",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.7.0",
"commitizen": "^4.3.1",
@ -86,6 +90,7 @@
"depcheck": "^1.4.7",
"eruda": "^3.4.1",
"eslint": "^9.17.0",
"eslint-plugin-oxlint": "^0.15.2",
"eslint-plugin-vue": "^9.32.0",
"husky": "^9.1.7",
"jsdom": "^25.0.1",
@ -93,11 +98,12 @@
"lint-staged": "^15.2.11",
"mockjs": "^1.1.0",
"npm-run-all2": "^7.0.2",
"oxlint": "^0.15.3",
"prettier": "^3.4.2",
"sass-embedded": "^1.83.0",
"surge": "^0.24.6",
"typescript": "~5.7.2",
"unocss": "^0.65.2",
"unocss": "^0.65.3",
"unplugin-auto-import": "^0.19.0",
"unplugin-icons": "^0.22.0",
"unplugin-vue-components": "^0.28.0",