医生站:
- 修复类型切换后编辑表单残留、blur/click竞态致选中无效、批量保存缺patientId
- 修复filterPrescriptionList.find过滤下展开失败、popover溢出、表格塌陷
- 提取resolveCategoryCode/getAdviceTableRef消除重复, 优化adviceTableRef类型
- 修复adviceBaseList keyField、选中残留、TS类型声明
护士站:
- 校对: 新增已执行状态判定+退回拦截, 修复状态标签颜色不一致
- 执行: 修复长期医嘱dayTimes为空被静默丢弃
- 双模块: 新增keep-alive重激活刷新+患者列表自动加载
配置:
- eslint.config.js 新增 @typescript-eslint/parser 支持Vue TS解析
68 lines
1.7 KiB
JavaScript
Executable File
68 lines
1.7 KiB
JavaScript
Executable File
/* eslint-env node */
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import globals from "globals";
|
|
import pluginVue from "eslint-plugin-vue";
|
|
import parserVue from "vue-eslint-parser";
|
|
import parserTs from "@typescript-eslint/parser";
|
|
import importPlugin, { createNodeResolver } from "eslint-plugin-import-x";
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default [
|
|
{
|
|
name: "app/files-to-lint",
|
|
files: ["**/*.{js,mjs,jsx,vue}"],
|
|
},
|
|
|
|
{
|
|
name: "app/files-to-ignore",
|
|
ignores: ["**/dist/**", "**/node_modules/**", "**/help-center/**"],
|
|
},
|
|
|
|
...pluginVue.configs["flat/recommended"],
|
|
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
},
|
|
parser: parserVue,
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
parserOptions: {
|
|
parser: parserTs,
|
|
},
|
|
},
|
|
|
|
plugins: {
|
|
"import-x": importPlugin,
|
|
},
|
|
|
|
rules: {
|
|
// 确保导入的模块实际存在(核心规则,防止构建失败)
|
|
"import-x/no-unresolved": "error",
|
|
// 确保导入的命名导出实际存在
|
|
"import-x/named": "error",
|
|
// 确保默认导出存在
|
|
"import-x/default": "error",
|
|
// 确保命名空间导出存在
|
|
"import-x/namespace": "error",
|
|
// Vue 相关规则
|
|
"vue/multi-word-component-names": "off",
|
|
},
|
|
|
|
settings: {
|
|
"import-x/resolver-next": [
|
|
createNodeResolver({
|
|
alias: {
|
|
"@": [path.join(__dirname, "src")],
|
|
},
|
|
extensions: [".mjs", ".cjs", ".js", ".jsx", ".vue", ".json", ".node"],
|
|
}),
|
|
],
|
|
},
|
|
},
|
|
];
|