Skip to content

Commit

Permalink
Fix all linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Jan 22, 2024
1 parent 761898b commit 2e31ae2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
import { enhance, applyAction } from "$app/forms"
import { page } from "$app/stores"
export let data
let { session, supabase, profile } = data
const fieldError = (liveForm, name: String) => {
let errors = liveForm?.errorFields ?? []
return errors.includes(name)
Expand All @@ -20,7 +16,7 @@
export let dangerous = false
export let title: string = ""
export let message: string = ""
export let fields
export let fields: any
export let formTarget: string = ""
export let successTitle = "Success"
export let successBody = ""
Expand All @@ -31,7 +27,7 @@
const handleSubmit = () => {
loading = true
return async ({ update, result }) => {
let response = await update({ reset: false })
await update({ reset: false })
await applyAction(result)
loading = false
if (result.type === "success") {
Expand Down
4 changes: 2 additions & 2 deletions src/routes/(admin)/account/create_profile/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
export let data
export let form
let { session, supabase, profile } = data
let { session, profile } = data
let loading = false
let fullName: string = profile?.full_name ?? ""
Expand All @@ -20,7 +20,7 @@
const handleSubmit = () => {
loading = true
return async ({ update, result }) => {
let response = await update({ reset: false })
await update({ reset: false })
await applyAction(result)
loading = false
}
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(marketing)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<li class="md:mx-2"><a href="/account">Account</a></li>
</ul>
<div class="dropdown dropdown-end sm:hidden">
<!-- svelte-ignore a11y-label-has-associated-control -->
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<label tabindex="0" class="btn btn-ghost btn-circle">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -34,6 +36,7 @@
/></svg
>
</label>
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<ul
tabindex="0"
class="menu menu-lg dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52 font-bold"
Expand Down
1 change: 1 addition & 0 deletions src/routes/(marketing)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html feature.svgContent}
</svg>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(marketing)/login/sign_in/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
let { supabase } = data
onMount(() => {
supabase.auth.onAuthStateChange((event, _session) => {
supabase.auth.onAuthStateChange((event) => {
// Redirect to account after sucessful login
if (event == "SIGNED_IN") {
// Delay needed because order of callback not guaranteed.
Expand Down

0 comments on commit 2e31ae2

Please sign in to comment.