fix svelte eslint config

This commit is contained in:
peterkogo
2025-04-17 10:26:18 +02:00
parent f43723f57c
commit 3d18393615
8 changed files with 111 additions and 527 deletions
@@ -1,6 +1,5 @@
import type { Dimensions, XYPosition } from '@xyflow/system';
import type { Snippet } from 'svelte';
import type { ClassValue, HTMLAttributes } from 'svelte/elements';
import type { HTMLAttributes } from 'svelte/elements';
export type EdgeLabelProps = {
x?: number;
@@ -26,6 +26,7 @@
// Unfortunately we have to destructure the props here this way,
// so we don't pass all the props as attributes to the div element
let {
id,
class: className,
+1 -1
View File
@@ -9,7 +9,7 @@ export function useStore(): SvelteFlowStore {
if (!storeContext) {
throw new Error(
'In order to use useStore you need to wrap your component in a <SvelteFlowProvider />'
'To call useStore outside of <SvelteFlow /> you need to wrap your component in a <SvelteFlowProvider />'
);
}