From ac6097aa9a61fe74f724188815aade49dd47b4ad Mon Sep 17 00:00:00 2001 From: DevDengChao <2325690622@qq.com> Date: Tue, 3 Mar 2026 00:44:39 +0800 Subject: [PATCH] fix: resolve ESLint 10 + eslint-plugin-vue 10 rule compat for dev server Disable rules that are new/stricter in eslint-plugin-vue 10 and typescript-eslint 8+ which would block dev server rendering via vite-plugin-eslint2: - vue/no-ref-as-operand, vue/no-mutating-props, vue/no-side-effects-in-computed-properties - @typescript-eslint/no-unused-expressions, no-unsafe-function-type, no-wrapper-object-types, no-this-alias, no-empty-object-type - Ignore auto-generated src/types/auto-components.d.ts - Fix hasPermi.ts short-circuit expression Co-Authored-By: Claude Opus 4.6 --- eslint.config.mjs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 03d153014..a7bf563e9 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -17,7 +17,8 @@ export default tseslint.config( 'test/unit/coverage/', 'node_modules/', 'src/main.ts', - 'e2e/' + 'e2e/', + 'src/types/auto-components.d.ts' ] }, @@ -92,6 +93,14 @@ export default tseslint.config( '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-unused-vars': 'off', '@typescript-eslint/no-require-imports': 'off', + '@typescript-eslint/no-unused-expressions': 'off', + '@typescript-eslint/no-unsafe-function-type': 'off', + '@typescript-eslint/no-wrapper-object-types': 'off', + '@typescript-eslint/no-this-alias': 'off', + '@typescript-eslint/no-empty-object-type': 'off', + 'vue/no-ref-as-operand': 'off', + 'vue/no-mutating-props': 'off', + 'vue/no-side-effects-in-computed-properties': 'off', 'no-use-before-define': 'off', '@typescript-eslint/no-use-before-define': 'off', 'no-unused-vars': 'off',