Resolve lint warnings

This commit is contained in:
2026-01-18 00:03:18 +02:00
parent 33de9720bf
commit 334b009749
5 changed files with 3 additions and 10 deletions

View File

@@ -1,7 +1,4 @@
<script lang="ts">
import { invoke } from "@tauri-apps/api/core";
import { trace } from "@tauri-apps/plugin-log";
import Basic from "./components/configurations/basic.svelte";
import Residents from "./components/configurations/residents.svelte";
import Advanced from "./components/configurations/advanced.svelte";

View File

@@ -68,6 +68,7 @@
<button
onclick={() => rota.removeForbiddenPair(i)}
class="mt-5 rounded-lg p-2 text-zinc-300 transition-colors"
aria-label="Remove forbidden pair"
>
<svg
xmlns="http://www.w3.org/2000/svg"

View File

@@ -44,6 +44,7 @@
<button
onclick={() => rota.removeResident(resident.id)}
class="text-zinc-500 transition-colors"
aria-label="Remove resident"
>
<svg
xmlns="http://www.w3.org/2000/svg"

View File

@@ -121,7 +121,7 @@ export type ShiftType = "Closed" | "OpenFirst" | "OpenSecond";
export type ShiftPosition = "First" | "Second";
export type SlotKey = `${number}-${"First" | "Second"}`;
export type MonthlySchedule = { [key: SlotKey]: string };
export type MonthlySchedule = { [key: SlotKey]: number };
export const steps = [
{

View File

@@ -10,12 +10,6 @@
"sourceMap": true,
"strict": true,
"moduleResolution": "bundler",
"baseUrl": ".",
"paths": {
"$lib": ["./src/lib"],
"$lib/*": ["./src/lib/*"]
}
}
// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias