Update eslint config to flat config

Since the legacy config is being deprecated at the end of 2024, we
should start moving to the eslint flat config.

I avoided the tseslint config helper function so we avoid wrapping
magic.

This seems to have triggered more checking since any checks in svelte
files have appeared and the $$Generic type that is being deprecated had
to be rewritten.

Also fixes some any types that weren't caught previously
This commit is contained in:
Sebastian Martinez
2024-05-27 17:35:16 +02:00
parent ffd49e82ee
commit 0c7ea70c1b
22 changed files with 370 additions and 276 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
<script lang="ts">
type T = $$Generic;
<script lang="ts" generics="T">
export let items: T[];
export let styleDropdownMinWidth: string | undefined = undefined;
</script>