mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-12-13 21:45:46 +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",
|
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,
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user