From e82adfed427ec7a8ec01c5afbf0f7d08d2f7bcc5 Mon Sep 17 00:00:00 2001 From: mateaix <57164338+mateaix@users.noreply.github.com> Date: Tue, 14 Jul 2026 21:11:58 +0800 Subject: [PATCH] chore(ui): ESLint 9 flat config, lint script fix, and lint error cleanup --- mateclaw-ui/eslint.config.mjs | 61 +++++ mateclaw-ui/package.json | 10 +- mateclaw-ui/pnpm-lock.yaml | 257 +++++++++++++++++- mateclaw-ui/pnpm-workspace.yaml | 3 + .../workflow/WorkflowJsonEditor.vue | 1 - .../src/composables/chat/useMessages.ts | 2 +- mateclaw-ui/src/composables/wikilink.ts | 1 - mateclaw-ui/src/views/ChatConsole.vue | 1 + .../src/views/Wiki/components/JobStageBar.vue | 2 +- mateclaw-ui/src/views/mcp/icons.ts | 1 - 10 files changed, 313 insertions(+), 26 deletions(-) create mode 100644 mateclaw-ui/eslint.config.mjs create mode 100644 mateclaw-ui/pnpm-workspace.yaml diff --git a/mateclaw-ui/eslint.config.mjs b/mateclaw-ui/eslint.config.mjs new file mode 100644 index 00000000..28ef86c5 --- /dev/null +++ b/mateclaw-ui/eslint.config.mjs @@ -0,0 +1,61 @@ +// ESLint 9 flat config for the Vue 3 + TypeScript admin console. +// Scope: correctness-oriented rules only (vue/essential + typescript-eslint +// recommended). Formatting is left to editors; type safety to vue-tsc. +import pluginVue from 'eslint-plugin-vue' +import tseslint from 'typescript-eslint' +import globals from 'globals' + +export default tseslint.config( + { + ignores: [ + 'node_modules/**', + 'dist/**', + 'public/**', + '../mateclaw-server/src/main/resources/static/**', + ], + }, + + ...tseslint.configs.recommended, + ...pluginVue.configs['flat/essential'], + + { + files: ['**/*.vue'], + languageOptions: { + parserOptions: { + // Delegate