From d8fd91a35d1d3081dac534d1e70200e9e3297f8b Mon Sep 17 00:00:00 2001 From: ZEKE320 <46393375+ZEKE320@users.noreply.github.com> Date: Sun, 7 Apr 2024 07:29:33 +0000 Subject: [PATCH 01/20] =?UTF-8?q?=F0=9F=9A=A8=20astro/src/components/Clien?= =?UTF-8?q?t/bsky/=E3=81=ABESLint=E3=81=AE--fix=E3=82=AA=E3=83=97=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=82=92=E9=81=A9=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astro/src/components/Client/bsky/LoginForm.tsx | 2 +- .../components/Client/bsky/MediaPreview/DeleteItemButton.tsx | 2 +- astro/src/components/Client/bsky/MediaPreview/MetaView.tsx | 2 +- astro/src/components/Client/bsky/buttons/DraftSaveButton.tsx | 2 +- astro/src/components/Client/bsky/unique/LoadSession.tsx | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/astro/src/components/Client/bsky/LoginForm.tsx b/astro/src/components/Client/bsky/LoginForm.tsx index 3cd729e..59f7580 100644 --- a/astro/src/components/Client/bsky/LoginForm.tsx +++ b/astro/src/components/Client/bsky/LoginForm.tsx @@ -35,7 +35,7 @@ export const Component = ({ password: pw }) if (typeof res.error !== "undefined") { - let e: Error = new Error(res.message) + const e: Error = new Error(res.message) e.name = res.error throw e } else { diff --git a/astro/src/components/Client/bsky/MediaPreview/DeleteItemButton.tsx b/astro/src/components/Client/bsky/MediaPreview/DeleteItemButton.tsx index 754f788..aa4a205 100644 --- a/astro/src/components/Client/bsky/MediaPreview/DeleteItemButton.tsx +++ b/astro/src/components/Client/bsky/MediaPreview/DeleteItemButton.tsx @@ -30,7 +30,7 @@ const Component = ({ return } // Listから自身のitemIdを取り除き、これをリストに追加する - let result = mediaData.images.filter( + const result = mediaData.images.filter( (_, index) => index !== itemId ) // 全てのメディアが削除された場合は null とする diff --git a/astro/src/components/Client/bsky/MediaPreview/MetaView.tsx b/astro/src/components/Client/bsky/MediaPreview/MetaView.tsx index 458e35a..3654adc 100644 --- a/astro/src/components/Client/bsky/MediaPreview/MetaView.tsx +++ b/astro/src/components/Client/bsky/MediaPreview/MetaView.tsx @@ -10,7 +10,7 @@ export const Component = ({ if (mediaData === null || mediaData.type !== "external") { return } - let mediaDataItem = mediaData.meta + const mediaDataItem = mediaData.meta return (