|
@@ -6,7 +6,11 @@
|
|
|
"scripts": {
|
|
"scripts": {
|
|
|
"dev": "vite",
|
|
"dev": "vite",
|
|
|
"build": "vue-tsc -b && vite build",
|
|
"build": "vue-tsc -b && vite build",
|
|
|
- "preview": "vite preview"
|
|
|
|
|
|
|
+ "preview": "vite preview",
|
|
|
|
|
+ "prepare": "husky",
|
|
|
|
|
+ "lint": "eslint .",
|
|
|
|
|
+ "lint:fix": "eslint . --fix",
|
|
|
|
|
+ "format": "prettier --write ."
|
|
|
},
|
|
},
|
|
|
"dependencies": {
|
|
"dependencies": {
|
|
|
"@element-plus/icons-vue": "^2.3.2",
|
|
"@element-plus/icons-vue": "^2.3.2",
|
|
@@ -22,17 +26,34 @@
|
|
|
"vue-router": "^5.0.3"
|
|
"vue-router": "^5.0.3"
|
|
|
},
|
|
},
|
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
|
|
|
+ "@eslint/js": "^10.0.1",
|
|
|
"@types/node": "^24.12.0",
|
|
"@types/node": "^24.12.0",
|
|
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
|
"@vue/tsconfig": "^0.9.0",
|
|
"@vue/tsconfig": "^0.9.0",
|
|
|
|
|
+ "eslint": "^10.1.0",
|
|
|
|
|
+ "eslint-config-prettier": "^10.1.8",
|
|
|
|
|
+ "eslint-plugin-vue": "^10.8.0",
|
|
|
"fast-glob": "^3.3.3",
|
|
"fast-glob": "^3.3.3",
|
|
|
|
|
+ "husky": "^9.1.7",
|
|
|
|
|
+ "lint-staged": "^16.4.0",
|
|
|
|
|
+ "prettier": "^3.8.1",
|
|
|
"sass-embedded": "^1.98.0",
|
|
"sass-embedded": "^1.98.0",
|
|
|
"typescript": "~5.9.3",
|
|
"typescript": "~5.9.3",
|
|
|
|
|
+ "typescript-eslint": "^8.57.2",
|
|
|
"unplugin-auto-import": "^21.0.0",
|
|
"unplugin-auto-import": "^21.0.0",
|
|
|
"unplugin-vue-components": "^31.0.0",
|
|
"unplugin-vue-components": "^31.0.0",
|
|
|
"vite": "^8.0.0",
|
|
"vite": "^8.0.0",
|
|
|
"vite-plugin-compression": "^0.5.1",
|
|
"vite-plugin-compression": "^0.5.1",
|
|
|
"vite-plugin-svg-icons": "^2.0.1",
|
|
"vite-plugin-svg-icons": "^2.0.1",
|
|
|
"vue-tsc": "^3.2.5"
|
|
"vue-tsc": "^3.2.5"
|
|
|
|
|
+ },
|
|
|
|
|
+ "lint-staged": {
|
|
|
|
|
+ "*.{vue,ts,tsx,js,jsx}": [
|
|
|
|
|
+ "eslint --fix",
|
|
|
|
|
+ "prettier --write"
|
|
|
|
|
+ ],
|
|
|
|
|
+ "*.{css,scss,html,json,md}": [
|
|
|
|
|
+ "prettier --write"
|
|
|
|
|
+ ]
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|