Skip to content

Commit

Permalink
Fixed svelte-check warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscoheat committed Apr 23, 2024
1 parent 73c61a9 commit d275e49
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 55 deletions.
3 changes: 1 addition & 2 deletions src/routes/(v1)/tests/array-error-tainted/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
validators: zod(schema)
});
// eslint-disable-next-line svelte/valid-compile
$: status = get(page).status;
const status = get(page).status;
</script>

<SuperDebug data={{ $form, $errors, $tainted }} />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(v1)/tests/custom-validity/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
2

<label>
Text: <textarea name="text" bind:value={$form.text} />
Text: <textarea name="text" bind:value={$form.text}></textarea>
</label>

<label>
Expand Down
3 changes: 1 addition & 2 deletions src/routes/(v1)/tests/multiselect/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
});
$: console.log($allErrors);
// eslint-disable-next-line svelte/valid-compile
$: options = optionsSchema._def.innerType.options;
const options = optionsSchema._def.innerType.options;
</script>

<SuperDebug data={{ $form, $errors, $tainted }} />
Expand Down
4 changes: 2 additions & 2 deletions src/routes/(v1)/tests/sten/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
type="text"
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"
/>
<button type="button" on:click={addQuestion} class="m-2 h-7 w-7 cursor-pointer" />
<button type="button" on:click={addQuestion} class="m-2 h-7 w-7 cursor-pointer"></button>
<!-- eslint-disable-next-line @typescript-eslint/no-unused-vars -->
{#each $form.questions as _, index}
<div class="col-span-full">
Expand All @@ -77,7 +77,7 @@
type="button"
class="m-2 h-7 w-7 cursor-pointer text-red-600"
on:click={() => removeQuestion(index)}
/>
></button>
</div>
</div>
</div>
Expand Down
8 changes: 0 additions & 8 deletions src/routes/(v2)/v2/issue-345/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
<p><a target="_blank" href="https://superforms.rocks/api">API Reference</a></p>

<style>
.invalid {
color: red;
}
.status {
color: white;
padding: 4px;
Expand All @@ -56,10 +52,6 @@
background-color: #ff2a02;
}
input {
background-color: #ddd;
}
a {
text-decoration: underline;
}
Expand Down
19 changes: 0 additions & 19 deletions src/routes/(v2)/v2/issue-356/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,6 @@
justify-content: space-between;
}
.corner {
width: 3em;
height: 3em;
}
.corner a {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.corner img {
width: 2em;
height: 2em;
object-fit: contain;
}
nav {
display: flex;
justify-content: center;
Expand Down
8 changes: 0 additions & 8 deletions src/routes/(v2)/v2/issue-358/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,6 @@
font-weight: 500;
}
.status.success {
background-color: seagreen;
}
.status.error {
background-color: #ff2a02;
}
input {
background-color: #ddd;
}
Expand Down
10 changes: 1 addition & 9 deletions src/routes/(v2)/v2/issue-360/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { schema } from './schema.js';
export let data;
//export let data;
const form = superForm(defaults(zod(schema)), {
SPA: true,
Expand Down Expand Up @@ -43,10 +43,6 @@
<p><a target="_blank" href="https://superforms.rocks/api">API Reference</a></p>

<style>
.invalid {
color: red;
}
.status {
color: white;
padding: 4px;
Expand All @@ -63,10 +59,6 @@
background-color: #ff2a02;
}
input {
background-color: #ddd;
}
a {
text-decoration: underline;
}
Expand Down
4 changes: 0 additions & 4 deletions src/routes/(v2)/v2/zod-discriminated/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@
background-color: #ddd;
}
a {
text-decoration: underline;
}
hr {
margin-top: 4rem;
}
Expand Down

0 comments on commit d275e49

Please sign in to comment.