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",
files: ["**/*.{ts,mts,tsx,vue}"],
},
{ ignores: ["**/dist/**"] },
{ ignores: ["**/dist/**", "**/coverage/**"] },
pluginVue.configs["flat/essential"],
vueTsConfigs.recommended,
skipFormatting,

View File

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