Ignore svelte plugin from eslint

https://github.com/sveltejs/vite-plugin-svelte/issues/552
This commit is contained in:
Ian VanSchooten 2022-12-15 21:22:26 -05:00
parent 5443b4b3de
commit c3f8a4c498

View File

@ -9,6 +9,8 @@ export const core: StorybookConfig['core'] = {
export const viteFinal: NonNullable<StorybookConfig['viteFinal']> = async (config, options) => {
const { plugins = [] } = config;
// TODO: set up eslint import to use typescript resolver
// eslint-disable-next-line import/no-unresolved
const { svelte, loadSvelteConfig } = await import('@sveltejs/vite-plugin-svelte');
const svelteOptions: Record<string, any> = await options.presets.apply(
'svelteOptions',