From 14f86a33028754b79f34c986b48be519e3bdd9ff Mon Sep 17 00:00:00 2001 From: Justineo Date: Tue, 9 Dec 2025 17:01:35 +0800 Subject: [PATCH] chore: update ESLint config to ignore coverage directory and fix type in test --- eslint.config.ts | 2 +- tests/echarts.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eslint.config.ts b/eslint.config.ts index ba8cfe8..c2dcaee 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -17,7 +17,7 @@ export default defineConfigWithVueTs( name: "app/files-to-lint", files: ["**/*.{ts,mts,tsx,vue}"], }, - { ignores: ["**/dist/**"] }, + { ignores: ["**/dist/**", "**/coverage/**"] }, pluginVue.configs["flat/essential"], vueTsConfigs.recommended, skipFormatting, diff --git a/tests/echarts.test.ts b/tests/echarts.test.ts index adb3578..663596f 100644 --- a/tests/echarts.test.ts +++ b/tests/echarts.test.ts @@ -854,7 +854,7 @@ describe("ECharts component", () => { const exposed = shallowRef(); renderChart( - () => ({ option: option.value, onClick: undefined as unknown as () => {} }), + () => ({ option: option.value, onClick: undefined as any }), exposed, ); await nextTick();