chore: setup linting

This commit is contained in:
Max Richter
2026-02-02 16:22:14 +01:00
parent 137425b31b
commit 30e897468a
174 changed files with 6043 additions and 5107 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts">
import type { Graph } from "$lib/types";
import type { Graph } from '$lib/types';
const { graph }: { graph?: Graph } = $props();
@@ -7,14 +7,14 @@
return JSON.stringify(
{
...g,
nodes: g.nodes.map((n: any) => ({ ...n, tmp: undefined })),
nodes: g.nodes.map((n: object) => ({ ...n, tmp: undefined }))
},
null,
2,
2
);
}
</script>
<pre>
{graph ? convert(graph) : 'No graph loaded'}
{graph ? convert(graph) : "No graph loaded"}
</pre>