Fix janky generics

This commit is contained in:
Caleb Owens 2024-09-11 16:00:04 +02:00
parent c4686bbf63
commit d76d900a7e
No known key found for this signature in database
2 changed files with 4 additions and 6 deletions

View File

@ -1,8 +1,3 @@
<script lang="ts" module>
// If this is not present, eslint complains that T is not defined below
type T = unknown;
</script>
<script lang="ts" generics="T"> <script lang="ts" generics="T">
/** /**
* Lazily renders a list of many many items. This is intended to be used * Lazily renders a list of many many items. This is intended to be used

View File

@ -49,7 +49,10 @@ export default tsEslint.config(
parser: svelteParser, parser: svelteParser,
parserOptions: { parserOptions: {
parser: tsParser, parser: tsParser,
extraFileExtensions: ['.svelte'] extraFileExtensions: ['.svelte'],
svelteFeatures: {
experimentalGenerics: true
}
} }
} }
}, },