From 34fe223aa4e530f3038fb479f09d33ed629100f1 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sat, 12 Sep 2026 20:28:59 -0400 Subject: [PATCH] chore(lint): remove unused eslint-disable directives Part of the #97 warning ratchet. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA --- src/app/features/common-settings/general/RoomQuality.tsx | 1 - src/app/features/common-settings/general/RoomRetention.tsx | 2 +- src/app/features/room-settings/RoomServerACL.tsx | 2 +- src/app/features/room/widgets/RoomWidgetView.tsx | 1 - src/app/features/room/widgets/WidgetsPanel.tsx | 3 +-- 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/app/features/common-settings/general/RoomQuality.tsx b/src/app/features/common-settings/general/RoomQuality.tsx index 292d4a148..1382f81fb 100644 --- a/src/app/features/common-settings/general/RoomQuality.tsx +++ b/src/app/features/common-settings/general/RoomQuality.tsx @@ -55,7 +55,6 @@ export function RoomQuality({ permissions }: RoomQualityProps) { const [submitState, submit] = useAsyncCallback( useCallback( async (next: RoomQualityContent) => { - // eslint-disable-next-line @typescript-eslint/no-explicit-any await sendStateEvent(mx, room.roomId, StateEvent.LotusRoomQuality, next); }, [mx, room.roomId], diff --git a/src/app/features/common-settings/general/RoomRetention.tsx b/src/app/features/common-settings/general/RoomRetention.tsx index 0f78f77c2..ee8ee5870 100644 --- a/src/app/features/common-settings/general/RoomRetention.tsx +++ b/src/app/features/common-settings/general/RoomRetention.tsx @@ -31,7 +31,7 @@ export function RoomRetention({ permissions }: RoomRetentionProps) { const content: RetentionContent = ms > 0 ? { max_lifetime: ms } : {}; // Lotus custom-state convention: cast the type key (RoomRetention isn't a // typed key in the SDK's StateEvents map). - // eslint-disable-next-line @typescript-eslint/no-explicit-any + await sendStateEvent(mx, room.roomId, StateEvent.RoomRetention, content); }, [mx, room.roomId], diff --git a/src/app/features/room-settings/RoomServerACL.tsx b/src/app/features/room-settings/RoomServerACL.tsx index aea24e43d..00f90a3a9 100644 --- a/src/app/features/room-settings/RoomServerACL.tsx +++ b/src/app/features/room-settings/RoomServerACL.tsx @@ -341,7 +341,7 @@ export function RoomServerACL({ requestClose }: RoomServerACLProps) { variant="Primary" /> - {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */} + {}