diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 52e708c6b..2f7580621 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -41,6 +41,9 @@ module.exports = { parser: "svelte-eslint-parser", parserOptions: { parser: "@typescript-eslint/parser", + svelteFeatures: { + experimentalGenerics: true, + }, }, rules: { "svelte/no-at-html-tags": "off", diff --git a/ts/lib/components/DeckChooser.svelte b/ts/lib/components/DeckChooser.svelte index 58880e86e..d79543ff0 100644 --- a/ts/lib/components/DeckChooser.svelte +++ b/ts/lib/components/DeckChooser.svelte @@ -13,7 +13,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html selectedDeck: DeckNameId | null; onChange?: (deck: DeckNameId) => void; } - let {selectedDeck = $bindable(null), onChange}: Props = $props(); + let { selectedDeck = $bindable(null), onChange }: Props = $props(); let decks: DeckNameId[] = $state([]); $effect(() => { diff --git a/ts/lib/components/ItemChooser.svelte b/ts/lib/components/ItemChooser.svelte index fb12eeba7..8075f611f 100644 --- a/ts/lib/components/ItemChooser.svelte +++ b/ts/lib/components/ItemChooser.svelte @@ -22,7 +22,15 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html onChange?: (item: Item) => void; } - let { title, onChange, icon, items, selectedItem = $bindable(null), keyCombination, tooltip }: Props = $props(); + let { + title, + onChange, + icon, + items, + selectedItem = $bindable(null), + keyCombination, + tooltip, + }: Props = $props(); let modal: Modal | null = $state(null); let searchQuery = $state(""); @@ -57,7 +65,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html {selectedItem?.name ?? "…"} - modal?.toggle()} /> + modal?.toggle()} />