build: 引入 ESLint 防回潮基建 + 清理存量未使用 import

This commit is contained in:
2026-06-17 20:53:23 +08:00
parent a0018353ec
commit 1adcda08b3
15 changed files with 1580 additions and 55 deletions
+10
View File
@@ -8,6 +8,9 @@
"build": "vite build",
"preview": "vite preview --host 127.0.0.1",
"type-check": "tsc -p tsconfig.json --noEmit",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint:strict": "eslint . --max-warnings=0",
"test": "vitest",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
@@ -23,13 +26,20 @@
"zustand": "5.0.13"
},
"devDependencies": {
"@eslint/js": "^9.18.0",
"@types/react": "18.2.55",
"@types/react-dom": "18.2.18",
"@vitejs/plugin-react": "4.2.1",
"@vitest/coverage-v8": "^1.6.0",
"eslint": "^9.18.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.18",
"eslint-plugin-unused-imports": "^4.1.4",
"globals": "^15.14.0",
"husky": "^9.1.7",
"lint-staged": "^17.0.7",
"typescript": "5.3.3",
"typescript-eslint": "^8.20.0",
"vite": "5.1.0",
"vite-plugin-compression2": "2.5.3",
"vitest": "^1.6.0"