Skip to content

Commit d2bb101

Browse files
chore(deps): update dependency eslint-plugin-svelte to v3 (#4877)
* chore(deps): update dependency eslint-plugin-svelte to v3 * fix: fixed lint error for eslint-plugin-svelte v3 changes. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jin Igarashi <igarashi.jin@water-gis.com>
1 parent 3e56e63 commit d2bb101

114 files changed

Lines changed: 376 additions & 370 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/orange-jeans-mate.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@undp-data/svelte-geohub-static-image-controls": patch
3+
"@undp-data/svelte-maplibre-storymap": patch
4+
"@undp-data/svelte-undp-components": patch
5+
"@undp-data/svelte-undp-design": patch
6+
"@undp-data/cgaz-admin-tool": patch
7+
"@undp-data/style-switcher": patch
8+
"geohub": patch
9+
---
10+
11+
fix: fixed lint error for eslint-plugin-svelte v3 changes.

packages/cgaz-admin-tool/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@typescript-eslint/parser": "^8.23.0",
4949
"eslint": "^9.19.0",
5050
"eslint-config-prettier": "^10.0.1",
51-
"eslint-plugin-svelte": "^2.46.1",
51+
"eslint-plugin-svelte": "^3.0.0",
5252
"globals": "^16.0.0",
5353
"pmtiles": "^4.2.1",
5454
"prettier": "^3.4.2",

packages/style-switcher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@typescript-eslint/parser": "^8.23.0",
3232
"eslint": "^9.19.0",
3333
"eslint-config-prettier": "^10.0.1",
34-
"eslint-plugin-svelte": "^2.46.1",
34+
"eslint-plugin-svelte": "^3.0.0",
3535
"globals": "^16.0.0",
3636
"prettier": "^3.4.2",
3737
"prettier-plugin-svelte": "^3.3.3",

packages/svelte-maplibre-storymap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@typescript-eslint/parser": "^8.23.0",
5252
"eslint": "^9.19.0",
5353
"eslint-config-prettier": "^10.0.1",
54-
"eslint-plugin-svelte": "^2.46.1",
54+
"eslint-plugin-svelte": "^3.0.0",
5555
"globals": "^16.0.0",
5656
"prettier": "^3.4.2",
5757
"prettier-plugin-svelte": "^3.3.3",

packages/svelte-maplibre-storymap/src/lib/StoryMap.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
<StoryMapHeader bind:template />
289289

290290
{#if $mapStore}
291-
{#each config.chapters as chapter}
291+
{#each config.chapters as chapter (chapter.id)}
292292
<StoryMapChapter {chapter} bind:activeId bind:template />
293293
{/each}
294294
{/if}
@@ -333,7 +333,7 @@
333333
aria-label={config.title}
334334
>
335335
</button>
336-
{#each config.chapters as ch, index}
336+
{#each config.chapters as ch, index (ch.id)}
337337
<button
338338
class="progress-button {slideIndex === index + 1 ? 'is-active' : ''}"
339339
use:tippyTooltip={{ content: ch.title }}

packages/svelte-maplibre-storymap/src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<div class="overlay">
2121
<div class="buttons has-addons">
22-
{#each cssModes as mode}
22+
{#each cssModes as mode (mode.id)}
2323
<label class="radio">
2424
<input type="radio" name="cssmode" value={mode.id} bind:group={cssMode} />
2525
{mode.label}

packages/svelte-static-image-controls/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@typescript-eslint/parser": "^8.23.0",
5050
"eslint": "^9.19.0",
5151
"eslint-config-prettier": "^10.0.1",
52-
"eslint-plugin-svelte": "^2.46.1",
52+
"eslint-plugin-svelte": "^3.0.0",
5353
"globals": "^16.0.0",
5454
"pmtiles": "^4.2.1",
5555
"prettier": "^3.4.2",

packages/svelte-static-image-controls/src/lib/StaticImageControl.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
<div class="select is-fullwidth">
262262
<select bind:value={selectedPageName} onchange={handlePageSizeChanged}>
263263
<option value="custom">Custom</option>
264-
{#each Object.keys(PageSizes) as name}
264+
{#each Object.keys(PageSizes) as name (name)}
265265
{@const size = PageSizes[name]}
266266
<option value={name}>{name} ({size[0]} mm x {size[1]} mm)</option>
267267
{/each}

packages/svelte-undp-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"eslint": "^9.19.0",
6969
"eslint-config-prettier": "^10.0.1",
7070
"eslint-plugin-storybook": "^0.11.2",
71-
"eslint-plugin-svelte": "^2.46.1",
71+
"eslint-plugin-svelte": "^3.0.0",
7272
"globals": "^16.0.0",
7373
"jsdom": "^26.0.0",
7474
"pmtiles": "^4.2.1",

packages/svelte-undp-components/src/lib/components/maplibre/heatmap/HeatmapColor.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@
9999

100100
<div class="fixed-grid has-{colorValues.length}-cols">
101101
<div class="grid is-gap-1">
102-
<!-- eslint-disable @typescript-eslint/no-unused-vars -->
103-
{#each colorValues as colorValueRow, index}
102+
{#each colorValues as colorValueRow, index (colorValueRow.index)}
104103
<div class="cell">
105104
<HeatmapColorRow
106105
bind:colorRow={colorValues[index]}

0 commit comments

Comments
 (0)