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

@@ -1,7 +1,7 @@
<script lang="ts">
import Avatar from '$lib/components/ui/Avatar.svelte'
import { getClient } from '$lib/lemmy.svelte.js'
import type { Community, ListingType, Person } from 'lemmy-js-client'
import type { ListingType, Person } from 'lemmy-js-client'
import { MenuButton, Search } from 'mono-svelte'
import { createEventDispatcher } from 'svelte'
import { Icon, XCircle } from 'svelte-hero-icons'
@@ -12,8 +12,7 @@
instance?: string | undefined
listing_type?: ListingType
showWhenEmpty?: boolean
onselect?: (e: any) => void
[key: string]: any
onselect?: (e: Person) => void
}
let {
@@ -28,7 +27,7 @@
</script>
<Search
search={async (q) => {
search={async q => {
const results = await getClient(instance).search({
q: q || ' ',
type_: 'Users',
@@ -37,9 +36,9 @@
sort: 'TopAll',
})
return results.users.map((c) => c.person)
return results.users.map(c => c.person)
}}
extractName={(c) => `${c.name}@${new URL(c.actor_id).hostname}`}
extractName={c => `${c.name}@${new URL(c.actor_id).hostname}`}
bind:query={q}
{...rest}
>