Skip to content

Commit bcba319

Browse files
committed
fix: fix linting issues
1 parent 40d73f5 commit bcba319

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/routes/examples/table/code.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { VirtualList } from 'svelte-virtuallists';
33
import { getRandomSushi } from '../sushi';
44
5-
const myModel = new Array(10000).fill(1).map((v, i) => {
5+
const myModel = new Array(10000).fill(1).map(() => {
66
return { text: getRandomSushi() };
77
});
88
</script>

src/routes/examples/variablesizing/code.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { VirtualList, type SizingCalculatorFn, type VLSlotSignature } from 'svelte-virtuallists';
33
import { getRandomSushi } from '../sushi';
44
5-
const myModel = new Array(10000).fill(1).map((v, i) => {
5+
const myModel = new Array(10000).fill(1).map(() => {
66
return { text: getRandomSushi() };
77
});
88

src/routes/examples/vertical/code.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</script>
99

1010
<VirtualList items={myModel} style="height:600px">
11-
{#snippet vl_slot({ index, item }: VLSlotSignature<(typeof myModel)[0]>)}
11+
{#snippet vl_slot({ item }: VLSlotSignature<(typeof myModel)[0]>)}
1212
<div style="border: 1px solid rgb(204, 204, 204)">
1313
{item.text}
1414
</div>

0 commit comments

Comments
 (0)