fix: Fix lint errors (#559)

* cleanup: postactions styling

* misc: fix first round of errors

* pkg: remove vitest

* fix: fix lint errors stage 2

* fix: fix lint errors stage 3

* fix: fix lint errors, stage 3

* misc: update eslint rules to warn for writable derived
This commit is contained in:
Xylight authored and GitHub committed 2025-06-09 16:34:06 -07:00
1 parent 1824245f13
commit 76c581123a
225 files changed
+1553 -2352

No files matched your search

+19 -4
View File
@@ -1,12 +1,27 @@
<script lang="ts">
import { getClient } from '$lib/lemmy.svelte.js'
import type { CommunityView, SubscribedType } from 'lemmy-js-client'
import type {
CommunityResponse,
CommunityView,
SubscribedType,
} from 'lemmy-js-client'
import { profile } from '$lib/auth.svelte.js'
import { toast } from 'mono-svelte'
import { errorMessage } from '$lib/lemmy/error'
interface Props {
community?: CommunityView | undefined
children?: import('svelte').Snippet<[any]>
children?: import('svelte').Snippet<
[
{
subscribe: (
id?: number,
subscribed?: SubscribedType,
) => Promise<CommunityResponse | undefined>
subscribing: boolean
},
]
>
}
let { community = undefined, children }: Props = $props()
@@ -30,8 +45,8 @@
subscribing = false
return res
} catch (error) {
toast({ content: error as any, type: 'error' })
} catch (err) {
toast({ content: errorMessage(err as string), type: 'error' })
}
subscribing = false