From 8a3ca86884c5b70e1779cbd812caf0bc9fa07738 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Thu, 11 Aug 2022 02:50:16 +0200 Subject: [PATCH] test(lint): fix --- packages/histoire-plugin-svelte/src/client/mount.ts | 1 + packages/histoire-plugin-svelte/src/client/render.ts | 1 + packages/histoire-plugin-svelte/src/index.ts | 2 +- packages/histoire-plugin-svelte/svelte.config.js | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/histoire-plugin-svelte/src/client/mount.ts b/packages/histoire-plugin-svelte/src/client/mount.ts index c271dbf7..a87d066e 100644 --- a/packages/histoire-plugin-svelte/src/client/mount.ts +++ b/packages/histoire-plugin-svelte/src/client/mount.ts @@ -37,6 +37,7 @@ export default _defineComponent({ target = document.createElement('div') el.value.appendChild(target) + // eslint-disable-next-line new-cap app = new props.story.file.component({ target, props: { diff --git a/packages/histoire-plugin-svelte/src/client/render.ts b/packages/histoire-plugin-svelte/src/client/render.ts index 88d9a721..43bf5d60 100644 --- a/packages/histoire-plugin-svelte/src/client/render.ts +++ b/packages/histoire-plugin-svelte/src/client/render.ts @@ -47,6 +47,7 @@ export default _defineComponent({ target = document.createElement('div') el.value.appendChild(target) + // eslint-disable-next-line new-cap app = new props.story.file.component({ target, props: { diff --git a/packages/histoire-plugin-svelte/src/index.ts b/packages/histoire-plugin-svelte/src/index.ts index c57740f8..434e8c45 100644 --- a/packages/histoire-plugin-svelte/src/index.ts +++ b/packages/histoire-plugin-svelte/src/index.ts @@ -23,7 +23,7 @@ export function HstSvelte (): Plugin { square: '@histoire/plugin-svelte/assets/histoire-svelte.svg', light: '@histoire/plugin-svelte/assets/histoire-svelte-text.svg', dark: '@histoire/plugin-svelte/assets/histoire-svelte-text.svg', - } + }, }, } }, diff --git a/packages/histoire-plugin-svelte/svelte.config.js b/packages/histoire-plugin-svelte/svelte.config.js index 6cb8c430..bad1a841 100644 --- a/packages/histoire-plugin-svelte/svelte.config.js +++ b/packages/histoire-plugin-svelte/svelte.config.js @@ -1,5 +1,5 @@ import sveltePreprocess from 'svelte-preprocess' export default { - preprocess: sveltePreprocess() + preprocess: sveltePreprocess(), }