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

+2 -5
View File
@@ -6,17 +6,14 @@ import {
generalizePostReport,
generalizePrivateMessageReport,
} from '$lib/lemmy/report.js'
import { get } from 'svelte/store'
import { ReactiveState } from '$lib/promise.svelte'
type ReportListType = 'unread' | 'all'
type ReportFilter = 'all' | 'posts' | 'comments' | 'messages'
export async function load({ url, fetch }) {
const page = Number(url.searchParams.get('page')) || 1
const type: ReportListType =
(url.searchParams.get('type') as ReportListType) || 'unread'
const filter: ReportFilter =
(url.searchParams.get('filter') as ReportFilter) || 'all'
const jwt = profile.data?.jwt
@@ -60,6 +57,6 @@ export async function load({ url, fetch }) {
return {
type: type,
page: page,
items: everything,
items: new ReactiveState(everything),
}
}