- 工作台新增近 7 日预约趋势与订单状态分布图 - 订单/用户/就诊人/陪诊师支持 CSV 导出,逐页拉取规避接口分页上限 - 订单列表增加状态快筛、筛选条件同步地址栏、加载失败重试 - 订单详情支持指派/更换陪诊师,性别值归一到订单枚举 - 用户列表支持批量锁定/解锁,导出补齐就诊人数量与归属信息 - 抽取 useTableQuery 统一分页、搜索与删除后页码回退 - ESLint 开启 vue/no-undef-properties,修复 EChart 扩展只注册一次的问题
37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
import { globalIgnores } from 'eslint/config'
|
|
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
|
|
import pluginVue from 'eslint-plugin-vue'
|
|
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
|
|
|
|
// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
|
|
// import { configureVueProject } from '@vue/eslint-config-typescript'
|
|
// configureVueProject({ scriptLangs: ['ts', 'tsx'] })
|
|
// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup
|
|
|
|
export default defineConfigWithVueTs(
|
|
{
|
|
name: 'app/files-to-lint',
|
|
files: ['**/*.{ts,mts,tsx,vue}'],
|
|
},
|
|
|
|
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
|
|
|
|
pluginVue.configs['flat/essential'],
|
|
vueTsConfigs.recommended,
|
|
|
|
{
|
|
name: 'app/rules',
|
|
rules: {
|
|
// 路由页面统一命名为 index.vue / detail.vue,不适用多词组件名约束
|
|
'vue/multi-word-component-names': 'off',
|
|
// 模板页面存在无 lang 的 <script>,强制 ts 会引入大量既有类型错误
|
|
'vue/block-lang': 'off',
|
|
// 模板引用了 script setup 里不存在的变量时直接报错。
|
|
// 这类问题 vite build / vue-tsc 都不会报,只会在页面运行时变成空白或缺失列
|
|
'vue/no-undef-properties': 'error',
|
|
},
|
|
},
|
|
|
|
skipFormatting,
|
|
)
|