Skip to content

Commit d275e49

Browse files
committed
Fixed svelte-check warnings
1 parent 73c61a9 commit d275e49

File tree

9 files changed

+6
-55
lines changed

9 files changed

+6
-55
lines changed

src/routes/(v1)/tests/array-error-tainted/+page.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
validators: zod(schema)
2424
});
2525
26-
// eslint-disable-next-line svelte/valid-compile
27-
$: status = get(page).status;
26+
const status = get(page).status;
2827
</script>
2928

3029
<SuperDebug data={{ $form, $errors, $tainted }} />

src/routes/(v1)/tests/custom-validity/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
2
5858

5959
<label>
60-
Text: <textarea name="text" bind:value={$form.text} />
60+
Text: <textarea name="text" bind:value={$form.text}></textarea>
6161
</label>
6262

6363
<label>

src/routes/(v1)/tests/multiselect/+page.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
});
1414
1515
$: console.log($allErrors);
16-
// eslint-disable-next-line svelte/valid-compile
17-
$: options = optionsSchema._def.innerType.options;
16+
const options = optionsSchema._def.innerType.options;
1817
</script>
1918

2019
<SuperDebug data={{ $form, $errors, $tainted }} />

src/routes/(v1)/tests/sten/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
type="text"
6060
class="block w-full rounded-md border-0 bg-white/5 py-1.5 text-white shadow-sm ring-1 ring-inset ring-white/10 focus:ring-2 focus:ring-inset focus:ring-indigo-500 sm:text-sm sm:leading-6"
6161
/>
62-
<button type="button" on:click={addQuestion} class="m-2 h-7 w-7 cursor-pointer" />
62+
<button type="button" on:click={addQuestion} class="m-2 h-7 w-7 cursor-pointer"></button>
6363
<!-- eslint-disable-next-line @typescript-eslint/no-unused-vars -->
6464
{#each $form.questions as _, index}
6565
<div class="col-span-full">
@@ -77,7 +77,7 @@
7777
type="button"
7878
class="m-2 h-7 w-7 cursor-pointer text-red-600"
7979
on:click={() => removeQuestion(index)}
80-
/>
80+
></button>
8181
</div>
8282
</div>
8383
</div>

src/routes/(v2)/v2/issue-345/+page.svelte

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@
3636
<p><a target="_blank" href="https://superforms.rocks/api">API Reference</a></p>
3737

3838
<style>
39-
.invalid {
40-
color: red;
41-
}
42-
4339
.status {
4440
color: white;
4541
padding: 4px;
@@ -56,10 +52,6 @@
5652
background-color: #ff2a02;
5753
}
5854
59-
input {
60-
background-color: #ddd;
61-
}
62-
6355
a {
6456
text-decoration: underline;
6557
}

src/routes/(v2)/v2/issue-356/Header.svelte

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,6 @@
2828
justify-content: space-between;
2929
}
3030
31-
.corner {
32-
width: 3em;
33-
height: 3em;
34-
}
35-
36-
.corner a {
37-
display: flex;
38-
align-items: center;
39-
justify-content: center;
40-
width: 100%;
41-
height: 100%;
42-
}
43-
44-
.corner img {
45-
width: 2em;
46-
height: 2em;
47-
object-fit: contain;
48-
}
49-
5031
nav {
5132
display: flex;
5233
justify-content: center;

src/routes/(v2)/v2/issue-358/+page.svelte

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,6 @@
6363
font-weight: 500;
6464
}
6565
66-
.status.success {
67-
background-color: seagreen;
68-
}
69-
70-
.status.error {
71-
background-color: #ff2a02;
72-
}
73-
7466
input {
7567
background-color: #ddd;
7668
}

src/routes/(v2)/v2/issue-360/+page.svelte

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
import { schema } from './schema.js';
99
10-
export let data;
10+
//export let data;
1111
1212
const form = superForm(defaults(zod(schema)), {
1313
SPA: true,
@@ -43,10 +43,6 @@
4343
<p><a target="_blank" href="https://superforms.rocks/api">API Reference</a></p>
4444

4545
<style>
46-
.invalid {
47-
color: red;
48-
}
49-
5046
.status {
5147
color: white;
5248
padding: 4px;
@@ -63,10 +59,6 @@
6359
background-color: #ff2a02;
6460
}
6561
66-
input {
67-
background-color: #ddd;
68-
}
69-
7062
a {
7163
text-decoration: underline;
7264
}

src/routes/(v2)/v2/zod-discriminated/+page.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@
163163
background-color: #ddd;
164164
}
165165
166-
a {
167-
text-decoration: underline;
168-
}
169-
170166
hr {
171167
margin-top: 4rem;
172168
}

0 commit comments

Comments
 (0)