diff --git a/eslint.config.js b/eslint.config.js index ef07d32..c16c9e6 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -20,7 +20,21 @@ export default ts.config( languageOptions: { globals: { ...globals.browser, ...globals.node } }, - rules: { 'no-undef': 'off' } + rules: { + 'no-undef': 'off', + '@typescript-eslint/no-unused-vars': [ + 'error', + { + args: 'all', + argsIgnorePattern: '^_', + caughtErrors: 'all', + caughtErrorsIgnorePattern: '^_', + destructuredArrayIgnorePattern: '^_', + varsIgnorePattern: '^_', + ignoreRestSiblings: true + } + ] + } }, { files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'], diff --git a/src/lib/ActionSelect.svelte b/src/lib/ActionSelect.svelte index 5617cfe..acfeaed 100644 --- a/src/lib/ActionSelect.svelte +++ b/src/lib/ActionSelect.svelte @@ -2,9 +2,7 @@ export type ActionSelectOption = { /** value is a convenience field, it has no internal use */ value?: string; - icon?: - | { component: Component; props: Record } - | Snippet<[opt: ActionSelectOption]>; + icon?: IconDef | Snippet<[opt: ActionSelectOption]>; label: string | Snippet<[opt: ActionSelectOption]>; disabled?: boolean; onchoose?: (opt: ActionSelectOption) => void; @@ -13,11 +11,12 @@ diff --git a/src/lib/TimezoneInput.svelte b/src/lib/TimezoneInput.svelte index 0826855..c27a74c 100644 --- a/src/lib/TimezoneInput.svelte +++ b/src/lib/TimezoneInput.svelte @@ -107,5 +107,6 @@ /> {#snippet timezoneLabel(item: ComboboxOption)} + {@html wbr(item.label ?? 'Missing label')} {/snippet}