From 7255c2c68ac4fc5478ec6e9df3a1ab8db2467ee2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Loi=CC=88c=20Correnson?= <loic.correnson@cea.fr>
Date: Tue, 19 May 2020 11:06:20 +0200
Subject: [PATCH] =?UTF-8?q?[ivette]=20please=20the=20linter=E2=80=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ivette/Makefile                    |  5 +++++
 ivette/src/renderer/ASTview.tsx    | 29 +++++++++++++++++++++--------
 ivette/src/renderer/Controller.tsx |  3 ++-
 3 files changed, 28 insertions(+), 9 deletions(-)

diff --git a/ivette/Makefile b/ivette/Makefile
index bde89ca5f34..35d6c5d8744 100644
--- a/ivette/Makefile
+++ b/ivette/Makefile
@@ -24,6 +24,11 @@ lint: dome-pkg dome-templ
 	@echo "[Ivette] running ts linter"
 	yarn run lint
 
+fixlint: dome-pkg dome-templ
+	@echo "[Ivette] running ts linter (with fix)"
+	yarn run lint --fix
+
+
 # --------------------------------------------------------------------------
 # --- Ivette Documentation
 # --------------------------------------------------------------------------
diff --git a/ivette/src/renderer/ASTview.tsx b/ivette/src/renderer/ASTview.tsx
index d9a3110a93e..0c1546dccef 100644
--- a/ivette/src/renderer/ASTview.tsx
+++ b/ivette/src/renderer/ASTview.tsx
@@ -111,16 +111,29 @@ const ASTview = () => {
   return (
     <>
       <TitleBar>
-        <IconButton icon="ZOOM.OUT" onClick={zoomOut}
+        <IconButton
+          icon="ZOOM.OUT"
+          onClick={zoomOut}
           disabled={!theFunction}
-          title="Zoom In (increase font size)" />
-        <IconButton icon="ZOOM.IN" onClick={zoomIn}
+          title="Zoom In (increase font size)"
+        />
+        <IconButton
+          icon="ZOOM.IN"
+          onClick={zoomIn}
           disabled={!theFunction}
-          title="Zoom Out (decrease font size)" />
-        <IconButton icon="CODE" onClick={themePopup}
-          title="Choose Theme" />
-        <IconButton icon="WRAPTEXT" selected={wrapText} onClick={setWrapText}
-          title="Wrap Text" />
+          title="Zoom Out (decrease font size)"
+        />
+        <IconButton
+          icon="CODE"
+          onClick={themePopup}
+          title="Choose Theme"
+        />
+        <IconButton
+          icon="WRAPTEXT"
+          selected={wrapText}
+          onClick={setWrapText}
+          title="Wrap Text"
+        />
       </TitleBar>
       <Text
         buffer={buffer}
diff --git a/ivette/src/renderer/Controller.tsx b/ivette/src/renderer/Controller.tsx
index 01a96432832..60387fdd6c8 100644
--- a/ivette/src/renderer/Controller.tsx
+++ b/ivette/src/renderer/Controller.tsx
@@ -171,7 +171,8 @@ const RenderConsole = () => {
         <Label
           className="dimmed"
           display={command && length > 0}
-          title="Rank in History" >
+          title="Rank in History"
+        >
           {1 + index}/{length}
         </Label>
         <Space />
-- 
GitLab