feat: 启用ESLint import规则 - 实时检测缺失导出,防止构建失败
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
"test:run": "vitest run",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"test:ui": "vitest --ui",
|
||||
"prepare": "cd .. && husky openhis-ui-vue3/.husky"
|
||||
"lint": "eslint . --ext .js,.vue src/"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -68,6 +68,11 @@
|
||||
"@vitejs/plugin-vue": "4.5.0",
|
||||
"@vue/compiler-sfc": "3.3.9",
|
||||
"@vue/test-utils": "^2.4.6",
|
||||
"eslint": "^9.39.4",
|
||||
"eslint-import-resolver-alias": "^1.1.2",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-vue": "^10.9.0",
|
||||
"globals": "^17.5.0",
|
||||
"happy-dom": "^20.8.3",
|
||||
"jsdom": "^28.1.0",
|
||||
"pg": "^8.18.0",
|
||||
@@ -81,14 +86,5 @@
|
||||
"vite-plugin-vue-mcp": "^0.3.2",
|
||||
"vitest": "^4.0.18",
|
||||
"vue-tsc": "^3.1.8"
|
||||
},
|
||||
"lint-staged": {
|
||||
"openhis-ui-vue3/**/*.{js,vue,ts}": [
|
||||
"cd openhis-ui-vue3 && npm run lint -- --fix",
|
||||
"cd openhis-ui-vue3 && npm run build:dev"
|
||||
],
|
||||
"**/*.{js,vue,ts}": [
|
||||
"echo \"文件变更已记录,构建检查将在pre-commit中执行\""
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user