From 6b88c15d1a6193cd090c5a1ae9b6ea06a467e171 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 4 Jul 2021 13:29:42 +0900 Subject: yarn lint:fix --- src/background/infrastructures/ContentMessageClient.ts | 2 +- .../operators/impls/CommandOperatorFactoryChain.ts | 3 ++- .../operators/impls/InternalOperatorFactoryChain.ts | 3 ++- .../operators/impls/NavigateOperatorFactoryChain.ts | 3 ++- .../operators/impls/RepeatOperatorFactoryChain.ts | 3 ++- src/background/presenters/ZoomPresenter.ts | 15 +-------------- 6 files changed, 10 insertions(+), 19 deletions(-) (limited to 'src/background') diff --git a/src/background/infrastructures/ContentMessageClient.ts b/src/background/infrastructures/ContentMessageClient.ts index e889392..8c00626 100644 --- a/src/background/infrastructures/ContentMessageClient.ts +++ b/src/background/infrastructures/ContentMessageClient.ts @@ -19,7 +19,7 @@ export default class ContentMessageClient { const enabled = await browser.tabs.sendMessage(tabId, { type: messages.ADDON_ENABLED_QUERY, }); - return (enabled as any) as boolean; + return enabled as any as boolean; } async toggleAddonEnabled(tabId: number): Promise { diff --git a/src/background/operators/impls/CommandOperatorFactoryChain.ts b/src/background/operators/impls/CommandOperatorFactoryChain.ts index 680a384..9408a4b 100644 --- a/src/background/operators/impls/CommandOperatorFactoryChain.ts +++ b/src/background/operators/impls/CommandOperatorFactoryChain.ts @@ -14,7 +14,8 @@ import StartFindOperator from "./StartFindOperator"; @injectable() export default class CommandOperatorFactoryChain - implements OperatorFactoryChain { + implements OperatorFactoryChain +{ constructor( @inject("TabPresenter") private readonly tabPresenter: TabPresenter, diff --git a/src/background/operators/impls/InternalOperatorFactoryChain.ts b/src/background/operators/impls/InternalOperatorFactoryChain.ts index 05615f6..00e8faf 100644 --- a/src/background/operators/impls/InternalOperatorFactoryChain.ts +++ b/src/background/operators/impls/InternalOperatorFactoryChain.ts @@ -10,7 +10,8 @@ import * as operations from "../../../shared/operations"; @injectable() export default class InternalOperatorFactoryChain - implements OperatorFactoryChain { + implements OperatorFactoryChain +{ constructor( @inject("WindowPresenter") private readonly windowPresenter: WindowPresenter, diff --git a/src/background/operators/impls/NavigateOperatorFactoryChain.ts b/src/background/operators/impls/NavigateOperatorFactoryChain.ts index 618db45..ce36e80 100644 --- a/src/background/operators/impls/NavigateOperatorFactoryChain.ts +++ b/src/background/operators/impls/NavigateOperatorFactoryChain.ts @@ -16,7 +16,8 @@ import * as operations from "../../../shared/operations"; @injectable() export default class NavigateOperatorFactoryChain - implements OperatorFactoryChain { + implements OperatorFactoryChain +{ constructor( @inject("TabPresenter") private readonly tabPresenter: TabPresenter, diff --git a/src/background/operators/impls/RepeatOperatorFactoryChain.ts b/src/background/operators/impls/RepeatOperatorFactoryChain.ts index 5038d48..a931209 100644 --- a/src/background/operators/impls/RepeatOperatorFactoryChain.ts +++ b/src/background/operators/impls/RepeatOperatorFactoryChain.ts @@ -8,7 +8,8 @@ import * as operations from "../../../shared/operations"; @injectable() export default class RepeatOperatorFactoryChain - implements OperatorFactoryChain { + implements OperatorFactoryChain +{ constructor( @inject("RepeatRepository") private readonly repeatRepository: RepeatRepository, diff --git a/src/background/presenters/ZoomPresenter.ts b/src/background/presenters/ZoomPresenter.ts index 5a3c64d..31d01c7 100644 --- a/src/background/presenters/ZoomPresenter.ts +++ b/src/background/presenters/ZoomPresenter.ts @@ -1,18 +1,5 @@ const ZOOM_SETTINGS = [ - 0.33, - 0.5, - 0.66, - 0.75, - 0.8, - 0.9, - 1.0, - 1.1, - 1.25, - 1.5, - 1.75, - 2.0, - 2.5, - 3.0, + 0.33, 0.5, 0.66, 0.75, 0.8, 0.9, 1.0, 1.1, 1.25, 1.5, 1.75, 2.0, 2.5, 3.0, ] as const; export default interface ZoomPresenter { -- cgit v1.2.3