From 86f6b83fcd04de5a1230771049da077863cd1f2e Mon Sep 17 00:00:00 2001
From: robban64 <carl@schonfelder.se>
Date: Tue, 16 Feb 2021 14:13:18 +0100
Subject: [PATCH] #4: Format imports on save

---
 .vscode/settings.json | 1 +
 client/src/App.tsx    | 4 ++--
 client/src/index.tsx  | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.vscode/settings.json b/.vscode/settings.json
index 92bded33..896cb947 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -5,6 +5,7 @@
     "editor.tabCompletion": "on",
     "editor.codeActionsOnSave": {
         "source.fixAll.eslint": true,
+        "source.organizeImports": true
     },
     //python
     "python.venvPath": "${workspaceFolder}\\server",
diff --git a/client/src/App.tsx b/client/src/App.tsx
index aad0abc9..931b58fa 100644
--- a/client/src/App.tsx
+++ b/client/src/App.tsx
@@ -1,7 +1,7 @@
-import React, { useState, useEffect } from 'react'
 import axios from 'axios'
-import logo from './logo.svg'
+import React, { useEffect, useState } from 'react'
 import './App.css'
+import logo from './logo.svg'
 
 interface Message {
   message: string
diff --git a/client/src/index.tsx b/client/src/index.tsx
index ba3503c6..e7b11a23 100644
--- a/client/src/index.tsx
+++ b/client/src/index.tsx
@@ -1,7 +1,7 @@
 import React from 'react'
 import ReactDOM from 'react-dom'
-import './index.css'
 import App from './App'
+import './index.css'
 import reportWebVitals from './reportWebVitals'
 
 ReactDOM.render(
-- 
GitLab