build(clinical-web): 添加 ESLint 和 Prettier 配置

This commit is contained in:
yelan
2026-08-27 10:51:40 +08:00
parent 3f27d4dd3a
commit 01827bf304
18 changed files with 2784 additions and 34 deletions

View File

@@ -6,7 +6,11 @@
"scripts": {
"dev": "vite",
"build": "vue-tsc -b && vite build",
"preview": "vite preview"
"preview": "vite preview",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier . --write",
"format:check": "prettier . --check"
},
"dependencies": {
"axios": "^1.20.0",
@@ -16,10 +20,17 @@
"vue-router": "^5.2.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^24.13.3",
"@vitejs/plugin-vue": "^6.0.8",
"@vue/tsconfig": "^0.9.1",
"eslint": "^10.9.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-vue": "^10.10.0",
"globals": "^17.11.0",
"prettier": "^3.9.6",
"typescript": "~6.0.2",
"typescript-eslint": "^8.68.0",
"vite": "^8.2.2",
"vue-tsc": "^3.3.11"
}