fix svelte eslint config
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 />'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user