From 97686dfc4bb49556e9a9c89791287ede3a91b95b Mon Sep 17 00:00:00 2001 From: Mohammed JBILOU <95973236+Molaryy@users.noreply.github.com> Date: Tue, 5 Sep 2023 21:51:53 +0200 Subject: [PATCH] fix: lint --- src/components/cards/DriveCards.tsx | 6 ++---- src/components/folder/UploadFolder.tsx | 7 ++++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/cards/DriveCards.tsx b/src/components/cards/DriveCards.tsx index 06ba03f..3234ba1 100644 --- a/src/components/cards/DriveCards.tsx +++ b/src/components/cards/DriveCards.tsx @@ -15,8 +15,7 @@ type DriveCardsProps = { contacts?: IPCContact[]; }; -const DriveCards = ({files, folders, programs, contacts}: DriveCardsProps): JSX.Element => { - return ( +const DriveCards = ({files, folders, programs, contacts}: DriveCardsProps): JSX.Element => ( {folders?.map((folder) => ( @@ -32,7 +31,6 @@ const DriveCards = ({files, folders, programs, contacts}: DriveCardsProps): JSX. ))} - ); -} + ) export default DriveCards; diff --git a/src/components/folder/UploadFolder.tsx b/src/components/folder/UploadFolder.tsx index 249d21a..a9f867e 100644 --- a/src/components/folder/UploadFolder.tsx +++ b/src/components/folder/UploadFolder.tsx @@ -93,10 +93,11 @@ const UploadFolder = (): JSX.Element => { const filesContent: ArrayBuffer[] = []; const getAllFiles = async (fileInfo: FileInfo[], filesEvent: FileList) => { - - for (const filesEvent_ of filesEvent) { + + // eslint-disable-next-line no-await-in-loop, no-restricted-syntax + for (const e of filesEvent) { // eslint-disable-next-line no-await-in-loop - const fileContent = await getFileContent(filesEvent_); + const fileContent = await getFileContent(e); filesContent.push(fileContent); }