mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-12-12 20:11:01 +08:00
chore: update ESLint config to ignore coverage directory and fix type in test
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user