From 2d510b8f3032d019ed72ca2a1f57da27c5719d65 Mon Sep 17 00:00:00 2001 From: abhijithvijayan <34790378+abhijithvijayan@users.noreply.github.com> Date: Fri, 17 Apr 2020 12:59:08 +0530 Subject: [PATCH] fix: apply new prettier rules --- package.json | 2 +- source/Background/index.ts | 4 +- source/Options/Options.tsx | 40 +++++++++++-------- source/Popup/Popup.tsx | 78 ++++++++++++++++++++------------------ yarn.lock | 8 ++-- 5 files changed, 72 insertions(+), 60 deletions(-) diff --git a/package.json b/package.json index 4961a31..0e4bcee 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "webextension-polyfill-ts": "^0.14.0" }, "devDependencies": { - "@abhijithvijayan/eslint-config": "0.14.1", + "@abhijithvijayan/eslint-config": "^1.3.0", "@abhijithvijayan/tsconfig": "^1.1.2", "@babel/core": "^7.9.0", "@babel/plugin-proposal-class-properties": "^7.8.3", diff --git a/source/Background/index.ts b/source/Background/index.ts index 0ccd78a..0cee38c 100644 --- a/source/Background/index.ts +++ b/source/Background/index.ts @@ -1,5 +1,5 @@ -import { browser } from 'webextension-polyfill-ts'; +import {browser} from 'webextension-polyfill-ts'; browser.runtime.onInstalled.addListener((): void => { - console.log('extension installed'); + console.log('extension installed'); }); diff --git a/source/Options/Options.tsx b/source/Options/Options.tsx index a44c173..7ad0fae 100644 --- a/source/Options/Options.tsx +++ b/source/Options/Options.tsx @@ -3,22 +3,30 @@ import React from 'react'; import './styles.scss'; const Options: React.FC = () => { - return ( -
-
-

- -
- -

-

- -

-
-
- ); + return ( +
+
+

+ +
+ +

+

+ +

+
+
+ ); }; export default Options; diff --git a/source/Popup/Popup.tsx b/source/Popup/Popup.tsx index ba115d2..498229f 100644 --- a/source/Popup/Popup.tsx +++ b/source/Popup/Popup.tsx @@ -1,51 +1,55 @@ import React from 'react'; -import { browser, Tabs } from 'webextension-polyfill-ts'; +import {browser, Tabs} from 'webextension-polyfill-ts'; import './styles.scss'; function openWebPage(url: string): Promise { - return browser.tabs.create({ url }); + return browser.tabs.create({url}); } const Popup: React.FC = () => { - return ( - + ); }; export default Popup; diff --git a/yarn.lock b/yarn.lock index e8081c4..318f5e4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@abhijithvijayan/eslint-config@0.14.1": - version "0.14.1" - resolved "https://registry.npmjs.org/@abhijithvijayan/eslint-config/-/eslint-config-0.14.1.tgz#ca6a0e0da188cb9d6be1be44a1e054f76be74c69" - integrity sha512-fx/n434sXdKAyKNxtdy91Wn8uqeyfd4fcIC8I1/xb7JTVlqB4uAdp2xVu5KG5hEFL+liauieT97wXNTTJBLTJg== +"@abhijithvijayan/eslint-config@^1.3.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@abhijithvijayan/eslint-config/-/eslint-config-1.3.0.tgz#cfe741a97f04725fa931e918014dfabc33aefdb1" + integrity sha512-b823i+e8Tw9auspey0U+3fVziydJ3d0bxUfd+HJdSuuHV/48EO6erPEy3acusqwSQ9uGB3contePze9Yt/n+eA== "@abhijithvijayan/tsconfig@^1.1.2": version "1.1.2"