Skip to content

Commit 972c22f

Browse files
committed
chore: get around eslint warning
1 parent 065fd9e commit 972c22f

File tree

8 files changed

+53
-48
lines changed

8 files changed

+53
-48
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@
9393
"vite": "^5.3.1"
9494
},
9595
"peerDependencies": {
96-
"svelte": "5.0.0-next.162"
96+
"svelte": "5.0.0-next.164"
9797
}
9898
}

pnpm-lock.yaml

+43-43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routes/+layout.svelte

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
{ title: 'Horizontal', path: '/examples/horizontal' },
2929
{ title: 'Variable Height', path: '/examples/variableheight' },
3030
{ title: 'Positioning', path: '/examples/positioning' },
31+
{ title: 'Partial Loader', path: '/examples/partialloader' },
3132
{ title: 'Events', path: '/examples/events' },
3233
{ title: 'Styles', path: '/examples/styles' }
3334
]

src/routes/examples/horizontal/code.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
modelCount={myModel.length}
2424
itemSize={150}
2525
>
26-
{#snippet slot({ item, style, index }: SlotAttributes<any>)}
26+
{#snippet slot({ item: _item, style, index }: SlotAttributes<any>)}
2727
<div class="col" {style}>
2828
Item #{index}
2929
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
<h2>Partial Loader (TO IMPLEMENT)</h2>
3+
<p>Lazy load data on demand</p>
4+

src/routes/examples/positioning/code.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
{scrollToBehaviour}
111111
onVisibleRangeUpdate={handleMessage}
112112
>
113-
{#snippet slot({ item, style, index }: SlotAttributes<any>)}
113+
{#snippet slot({ item: _item, style, index }: SlotAttributes<any>)}
114114
<div class="row" {style} class:highlighted={index === scrollToIndex}>
115115
Item #{index}
116116
</div>

src/routes/examples/variableheight/code.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<div class="list">
3535
<VirtualList bind:this={virtualList} model={myModel} height={500} width="auto" {modelCount} itemSize={rowHeights}>
36-
{#snippet slot({ item, style, index }: SlotAttributes<MyItemsData>)}
36+
{#snippet slot({ item, style, index: _index }: SlotAttributes<MyItemsData>)}
3737
<div class="row" {style}>
3838
{item.text}
3939
</div>

src/routes/examples/vertical/code.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<div class="list">
2929
<VirtualList model={myModel} height={500} width="auto" modelCount={myModel.length} {itemSize}>
30-
{#snippet slot({ item, style, index }: SlotAttributes<MyItemsData>)}
30+
{#snippet slot({ item, style, index: _index }: SlotAttributes<MyItemsData>)}
3131
<div class="row" {style}>
3232
{item.text}
3333
</div>

0 commit comments

Comments
 (0)