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 { getContext, type Snippet } from "svelte";
import { getContext, type Snippet } from 'svelte';
let index = $state(-1);
let wrapper: HTMLDivElement;
@@ -8,19 +8,17 @@
$effect(() => {
if (index === -1) {
index = getContext<() => number>("registerCell")();
index = getContext<() => number>('registerCell')();
}
});
const sizes = getContext<{ value: string[] }>("sizes");
const sizes = getContext<{ value: string[] }>('sizes');
let downSizes: string[] = [];
let downWidth = 0;
let mouseDown = false;
let startX = 0;
function handleMouseDown(event: MouseEvent) {
downSizes = [...sizes.value];
mouseDown = true;
startX = event.clientX;
downWidth = wrapper.getBoundingClientRect().width;
@@ -45,7 +43,8 @@
role="button"
tabindex="0"
onmousedown={handleMouseDown}
></div>
>
</div>
{/if}
<div class="cell" bind:this={wrapper}>