From 1e7ed34a60ec36fed2a2b9d134c89ccf69929ff3 Mon Sep 17 00:00:00 2001 From: DecDuck Date: Sat, 22 Nov 2025 10:46:03 +1100 Subject: [PATCH] fix: lint --- components/NotificationItem.vue | 4 +++- components/UserHeader/NotificationWidgetPanel.vue | 4 +++- composables/notifications.ts | 5 ++++- pages/account/notifications.vue | 1 - 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/components/NotificationItem.vue b/components/NotificationItem.vue index 2606643..b81ee30 100644 --- a/components/NotificationItem.vue +++ b/components/NotificationItem.vue @@ -47,7 +47,9 @@ import { XMarkIcon } from "@heroicons/vue/24/solid"; import type { SerializeObject } from "nitropack"; import type { NotificationModel } from "~/prisma/client/models"; -const props = defineProps<{ notification: SerializeObject }>(); +const props = defineProps<{ + notification: SerializeObject; +}>(); async function deleteMe() { await $dropFetch(`/api/v1/notifications/:id`, { diff --git a/components/UserHeader/NotificationWidgetPanel.vue b/components/UserHeader/NotificationWidgetPanel.vue index 5a7e49c..7018c66 100644 --- a/components/UserHeader/NotificationWidgetPanel.vue +++ b/components/UserHeader/NotificationWidgetPanel.vue @@ -49,5 +49,7 @@ import type { SerializeObject } from "nitropack"; import type { NotificationModel } from "~/prisma/client/models"; -const props = defineProps<{ notifications: Array> }>(); +const props = defineProps<{ + notifications: Array>; +}>(); diff --git a/composables/notifications.ts b/composables/notifications.ts index 543ac77..637fe7e 100644 --- a/composables/notifications.ts +++ b/composables/notifications.ts @@ -4,7 +4,10 @@ import type { NotificationModel } from "~/prisma/client/models"; const ws = new WebSocketHandler("/api/v1/notifications/ws"); export const useNotifications = () => - useState>>("notifications", () => []); + useState>>( + "notifications", + () => [], + ); ws.listen((e) => { const notification = JSON.parse(e) as SerializeObject; diff --git a/pages/account/notifications.vue b/pages/account/notifications.vue index a1fd539..04b83f1 100644 --- a/pages/account/notifications.vue +++ b/pages/account/notifications.vue @@ -26,7 +26,6 @@ {{ $t("account.notifications.clear") }} -