chore: update ESLint config to ignore coverage directory and fix type in test

This commit is contained in:
Justineo
2025-12-09 17:01:35 +08:00
parent a5f3402199
commit 14f86a3302
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ export default defineConfigWithVueTs(
name: "app/files-to-lint", name: "app/files-to-lint",
files: ["**/*.{ts,mts,tsx,vue}"], files: ["**/*.{ts,mts,tsx,vue}"],
}, },
{ ignores: ["**/dist/**"] }, { ignores: ["**/dist/**", "**/coverage/**"] },
pluginVue.configs["flat/essential"], pluginVue.configs["flat/essential"],
vueTsConfigs.recommended, vueTsConfigs.recommended,
skipFormatting, skipFormatting,

View File

@@ -854,7 +854,7 @@ describe("ECharts component", () => {
const exposed = shallowRef<any>(); const exposed = shallowRef<any>();
renderChart( renderChart(
() => ({ option: option.value, onClick: undefined as unknown as () => {} }), () => ({ option: option.value, onClick: undefined as any }),
exposed, exposed,
); );
await nextTick(); await nextTick();