From ef2033661b9fed4616b8cf4d104bc4964594ff6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Rodr=C3=ADguez?= Date: Sat, 2 Apr 2022 14:00:24 +0200 Subject: [PATCH] Add organizeImports and eslint config, update Popup, cleanup --- .vscode/settings.json | 9 +++++++-- src/pages/Background/index.js | 2 -- src/pages/Popup/Popup.tsx | 4 +--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index cac0e10e6..4d454e671 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,8 @@ { - "editor.formatOnSave": true -} \ No newline at end of file + "editor.formatOnSave": true, + "typescript.updateImportsOnFileMove.enabled": "always", + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true, + "source.organizeImports": true + } +} diff --git a/src/pages/Background/index.js b/src/pages/Background/index.js index 5877480ca..0dc5d7cb0 100644 --- a/src/pages/Background/index.js +++ b/src/pages/Background/index.js @@ -1,5 +1,3 @@ -// import axios from 'axios'; - console.log('This is the background page.'); // Example for listening to tab switching/loading diff --git a/src/pages/Popup/Popup.tsx b/src/pages/Popup/Popup.tsx index eb7251c26..b10493262 100644 --- a/src/pages/Popup/Popup.tsx +++ b/src/pages/Popup/Popup.tsx @@ -1,7 +1,5 @@ -import axios from 'axios'; -import React, { useEffect, useState } from 'react'; +import React, { useState } from 'react'; import logo from '../../assets/img/logo.svg'; -import { Greetings } from '../../containers/Greetings/Greetings'; import './Popup.css'; export const Popup = () => {