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