Files
xh-medical-sign-web/clinical-web/eslint.config.js
T
yelan 81922d774f feat(文档库): 打通模板正文真实模式并新增渲染验证
模板列表接口不返回正文,展示、编辑与发起签署前需再取版本详情获取 contentHtml,
为此新增 getTemplateContent、createTemplateWithContent、updateTemplateContent 与
deleteTemplate(归档),并在签署端按 contentSha256 缓存正文快照。

同时新增 scripts/login.cjs 与 scripts/verify-pages.cjs,通过真实登录与 CDP
渲染截图、断言关键内容并收集运行时错误,并补充 .gitignore、eslint 忽略与文档说明。
2026-09-17 14:10:45 +08:00

61 lines
1.4 KiB
JavaScript

import eslint from '@eslint/js'
import eslintConfigPrettier from 'eslint-config-prettier'
import eslintPluginVue from 'eslint-plugin-vue'
import globals from 'globals'
import tseslint from 'typescript-eslint'
export default tseslint.config(
{
ignores: [
'**/dist/**',
'**/node_modules/**',
'**/coverage/**',
'**/*.d.ts',
// 本地验证工具脚本(CommonJS,跑在 Node 里,不参与构建)。
// 它们刻意用 require / 空 catch,套前端项目的 TS 规则只会产生噪音。
'scripts/**',
],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
...eslintPluginVue.configs['flat/recommended'],
{
files: ['**/*.{ts,tsx,vue}'],
languageOptions: {
globals: globals.browser,
parserOptions: {
parser: tseslint.parser,
},
},
},
{
files: ['**/*.{js,mjs,cjs}'],
languageOptions: {
globals: globals.node,
},
},
{
files: ['vite.config.ts', '*.config.{js,mjs,cjs,ts}'],
languageOptions: {
globals: globals.node,
},
},
{
files: ['**/*.vue'],
languageOptions: {
parserOptions: {
parser: tseslint.parser,
},
},
rules: {
'vue/multi-word-component-names': 'off',
},
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
},
},
eslintConfigPrettier,
)