mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-22 17:11:43 +03:00
Fix janky generics
This commit is contained in:
parent
c4686bbf63
commit
d76d900a7e
@ -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
|
||||||
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user