Skip to content

Commit 5694251

Browse files
committed
chore: fix newly generated eslint errors
1 parent db24a23 commit 5694251

10 files changed

Lines changed: 28 additions & 28 deletions

File tree

eslint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default [
2222
/**
2323
* @see {@link https://github.com/sveltejs/eslint-plugin-svelte}
2424
*/
25-
...eslintPluginSvelte.configs["flat/recommended"],
26-
...eslintPluginSvelte.configs["flat/prettier"],
25+
...eslintPluginSvelte.configs.recommended,
26+
...eslintPluginSvelte.configs.prettier,
2727

2828
/**
2929
* @see {@link https://github.com/prettier/eslint-config-prettier}

src/app/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
{/if}
137137
{#if enableLogger}
138138
<div class="debug">
139-
<Dropdown icon={IconDebug} title={"New item"} right>
139+
<Dropdown icon={IconDebug} title="New item" right>
140140
<button onclick={exportLogFiles}>
141141
{gl("export_log_files")}
142142
</button>

src/ext/action-popup/App.svelte

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@
495495

496496
{#if showUpdates}
497497
<View
498-
headerTitle={"Updates"}
498+
headerTitle="Updates"
499499
loading={disabled}
500500
closeClick={() => (showUpdates = false)}
501501
showLoaderOnDisabled={true}
@@ -511,7 +511,7 @@
511511
</View>
512512
{:else if showInstall}
513513
<View
514-
headerTitle={"Install Userscript"}
514+
headerTitle="Install Userscript"
515515
loading={disabled}
516516
closeClick={() => (showInstall = false)}
517517
showLoaderOnDisabled={true}
@@ -525,7 +525,7 @@
525525
</View>
526526
{:else if showAll}
527527
<View
528-
headerTitle={"All Userscripts"}
528+
headerTitle="All Userscripts"
529529
loading={disabled}
530530
closeClick={() => {
531531
showAll = false;
@@ -540,26 +540,26 @@
540540
<div class="buttons">
541541
<IconButton
542542
icon={iconOpen}
543-
title={"Open save location"}
543+
title="Open save location"
544544
on:click={openSaveLocation}
545545
{disabled}
546546
/>
547547
<IconButton
548548
icon={iconUpdate}
549549
infoDot={!!updates.length}
550550
on:click={() => (showUpdates = true)}
551-
title={"Show updates"}
551+
title="Show updates"
552552
{disabled}
553553
/>
554554
<IconButton
555555
icon={iconRefresh}
556556
on:click={refreshView}
557-
title={"Refresh view"}
557+
title="Refresh view"
558558
{disabled}
559559
/>
560560
<Toggle
561561
checked={active}
562-
title={"Toggle injection"}
562+
title="Toggle injection"
563563
on:click={toggleExtension}
564564
{disabled}
565565
/>
@@ -574,7 +574,7 @@
574574
<IconButton
575575
icon={iconClear}
576576
on:click={() => (showBetaNews = false)}
577-
title={"Close"}
577+
title="Close"
578578
/>
579579
</div>
580580
{/if}
@@ -595,7 +595,7 @@
595595
<IconButton
596596
icon={iconClear}
597597
on:click={() => (errorNotification = undefined)}
598-
title={"Clear error"}
598+
title="Clear error"
599599
/>
600600
</div>
601601
{/if}

src/ext/action-popup/Components/View.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="view" transition:slide>
2525
<div class="view__header">
2626
{headerTitle}
27-
<IconButton icon={iconArrowLeft} title={"Go back"} on:click={closeClick} />
27+
<IconButton icon={iconArrowLeft} title="Go back" on:click={closeClick} />
2828
</div>
2929
<div class="view__body">
3030
{#if loading && showLoaderOnDisabled}

src/ext/action-popup/Components/Views/InstallView.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,31 @@
2525
{#if userscript.match}
2626
<li class="userscript--field">
2727
<div>@match</div>
28-
{#each userscript.match as match}
28+
{#each userscript.match as match (match)}
2929
<div class="truncate">{match}</div>
3030
{/each}
3131
</li>
3232
{/if}
3333
{#if userscript.include}
3434
<li class="userscript--field">
3535
<div>@include</div>
36-
{#each userscript.include as include}
36+
{#each userscript.include as include (include)}
3737
<div class="truncate">{include}</div>
3838
{/each}
3939
</li>
4040
{/if}
4141
{#if userscript.require}
4242
<li class="userscript--field">
4343
<div>@require</div>
44-
{#each userscript.require as require}
44+
{#each userscript.require as require (require)}
4545
<div class="truncate">{require}</div>
4646
{/each}
4747
</li>
4848
{/if}
4949
{#if userscript.grant}
5050
<li class="userscript--field">
5151
<div>@grant</div>
52-
{#each userscript.grant as grant}
52+
{#each userscript.grant as grant (grant)}
5353
<div>{grant}</div>
5454
{/each}
5555
</li>

src/ext/extension-page/Components/Editor/Editor.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,19 @@
197197
<IconButton
198198
icon={iconSync}
199199
on:click={update}
200-
title={"Check for updates"}
200+
title="Check for updates"
201201
disabled={disabled || !canUpdate}
202202
/>
203203
<IconButton
204204
icon={iconDownload}
205205
on:click={download}
206-
title={"Download file"}
206+
title="Download file"
207207
{disabled}
208208
/>
209209
<IconButton
210210
icon={iconTrash}
211211
on:click={trash}
212-
title={"Trash file"}
212+
title="Trash file"
213213
{disabled}
214214
/>
215215
</div>

src/ext/extension-page/Components/ModalWrapper.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{#if nav}
4747
<nav>
4848
<ul>
49-
{#each navAnchors as [node, lang]}
49+
{#each navAnchors as [node, lang] (lang)}
5050
<li>
5151
<button on:click={() => navClick(node)}>
5252
{lang}

src/ext/extension-page/Components/Settings.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
</script>
235235
236236
<div class="settings_box" bind:this={settingsBox}>
237-
{#each groups as group}
237+
{#each groups as group (group)}
238238
<div class="section">
239239
<div
240240
class="section_header"
@@ -247,7 +247,7 @@
247247
>
248248
{/if}
249249
</div>
250-
{#each groupItems(group) as item}
250+
{#each groupItems(group) as item (item.name)}
251251
{@const ariaAttributes = {
252252
"aria-labelledby": `${item.name}_label`,
253253
"aria-describedby": `${item.name}_desc`,
@@ -289,7 +289,7 @@
289289
$settings[item.name],
290290
)}
291291
>
292-
{#each item.values as value}
292+
{#each item.values as value (value)}
293293
<option {value}>
294294
{gl(`settings_${item.name}_${value}`) || value}
295295
</option>
@@ -346,7 +346,7 @@
346346
style:opacity={gemFocused ? 1 : "revert-layer"}
347347
bind:this={gemRender}
348348
>
349-
{#each gemParsed.items as p}
349+
{#each gemParsed.items as p (p)}
350350
<!-- should not contain any newlines or indents -->
351351
{p.start}{#if p.warn || p.error}<mark
352352
class:warn={p.warn}

src/ext/extension-page/Components/Sidebar/Sidebar.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@
214214
warnDot={!$settings["global_active"]}
215215
icon={iconSettings}
216216
on:click={() => state.add("settings")}
217-
title={"Open settings"}
217+
title="Open settings"
218218
{disabled}
219219
/>
220-
<Dropdown icon={iconPlus} title={"New item"} {disabled}>
220+
<Dropdown icon={iconPlus} title="New item" {disabled}>
221221
<button on:click={() => newItem("js")}>New JS</button>
222222
<button on:click={() => newItem("css")}>New CSS</button>
223223
<button on:click={newRemote}>New Remote</button>

src/ext/extension-page/Components/Sidebar/SidebarFilter.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{disabled}
4747
/>
4848
<Dropdown icon={iconSort} {disabled} title={gl("settings_editor_list_sort")}>
49-
{#each orders as order}
49+
{#each orders as order (order)}
5050
<button
5151
class:selected={sortOrder === order}
5252
on:click={() => updateSortOrder(order)}

0 commit comments

Comments
 (0)