From 9913030e6ff27d546ce6ec4f19f65f4775da77ab Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Tue, 14 Jan 2020 18:16:50 +0100 Subject: [PATCH] Remove eslint comments from tsx file Change-type: patch --- lib/gui/app/pages/main/Flash.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/gui/app/pages/main/Flash.tsx b/lib/gui/app/pages/main/Flash.tsx index 8835356e..c77e591e 100644 --- a/lib/gui/app/pages/main/Flash.tsx +++ b/lib/gui/app/pages/main/Flash.tsx @@ -78,7 +78,6 @@ const flashImageToDrive = async (goToSuccess: () => void) => { return _.includes(devices, drive.device); }); - // eslint-disable-next-line no-magic-numbers if (drives.length === 0 || flashState.isFlashing()) { return ''; } @@ -155,9 +154,7 @@ const formatSeconds = (totalSeconds: number) => { if (!totalSeconds && !_.isNumber(totalSeconds)) { return ''; } - // eslint-disable-next-line no-magic-numbers const minutes = Math.floor(totalSeconds / 60); - // eslint-disable-next-line no-magic-numbers const seconds = Math.floor(totalSeconds - minutes * 60); return `${minutes}m${seconds}s`; @@ -205,7 +202,6 @@ export const Flash = ({ shouldFlashStepBeDisabled, goToSuccess }: any) => { return _.includes(devices, drive.device); }); - // eslint-disable-next-line no-magic-numbers if (drives.length === 0 || flashState.isFlashing()) { return; } @@ -276,7 +272,6 @@ export const Flash = ({ shouldFlashStepBeDisabled, goToSuccess }: any) => { - {/* eslint-disable-next-line no-magic-numbers */} {warningMessages && warningMessages.length > 0 && (