diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-07-04 13:29:42 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-07-04 13:29:42 +0900 |
commit | 6b88c15d1a6193cd090c5a1ae9b6ea06a467e171 (patch) | |
tree | e1b78080d8e10477007c9379b57a6213e6f72c6a /src/content | |
parent | 5904eeff1a75dcf83bcef7d5666a7473cc5b77de (diff) |
yarn lint:fix
Diffstat (limited to 'src/content')
11 files changed, 22 insertions, 16 deletions
diff --git a/src/content/operators/impls/ClipboardOperatorFactoryChain.ts b/src/content/operators/impls/ClipboardOperatorFactoryChain.ts index 454aea1..3ae4442 100644 --- a/src/content/operators/impls/ClipboardOperatorFactoryChain.ts +++ b/src/content/operators/impls/ClipboardOperatorFactoryChain.ts @@ -12,7 +12,8 @@ import URLRepository from "./URLRepository"; @injectable() export default class ClipboardOperatorFactoryChain - implements OperatorFactoryChain { + implements OperatorFactoryChain +{ constructor( @inject("ClipboardRepository") private readonly clipboardRepository: ClipboardRepository, diff --git a/src/content/operators/impls/FollowOperatorFactoryChain.ts b/src/content/operators/impls/FollowOperatorFactoryChain.ts index 588e1a4..3867ed2 100644 --- a/src/content/operators/impls/FollowOperatorFactoryChain.ts +++ b/src/content/operators/impls/FollowOperatorFactoryChain.ts @@ -7,7 +7,8 @@ import * as operations from "../../../shared/operations"; @injectable() export default class FollowOperatorFactoryChain - implements OperatorFactoryChain { + implements OperatorFactoryChain +{ constructor( @inject("FollowMasterClient") private followMasterClient: FollowMasterClient diff --git a/src/content/operators/impls/HorizontalScrollOperator.ts b/src/content/operators/impls/HorizontalScrollOperator.ts index f813f85..41287e8 100644 --- a/src/content/operators/impls/HorizontalScrollOperator.ts +++ b/src/content/operators/impls/HorizontalScrollOperator.ts @@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository"; export default class HorizontalScrollOperator extends AbstractScrollOperator - implements Operator { + implements Operator +{ constructor( private readonly presenter: ScrollPresenter, settingRepository: SettingRepository, diff --git a/src/content/operators/impls/PageScrollOperator.ts b/src/content/operators/impls/PageScrollOperator.ts index 377bf92..fbe4dbe 100644 --- a/src/content/operators/impls/PageScrollOperator.ts +++ b/src/content/operators/impls/PageScrollOperator.ts @@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository"; export default class PageScrollOperator extends AbstractScrollOperator - implements Operator { + implements Operator +{ constructor( private readonly presenter: ScrollPresenter, settingRepository: SettingRepository, diff --git a/src/content/operators/impls/ScrollOperatorFactoryChain.ts b/src/content/operators/impls/ScrollOperatorFactoryChain.ts index 6847aea..8c5cea2 100644 --- a/src/content/operators/impls/ScrollOperatorFactoryChain.ts +++ b/src/content/operators/impls/ScrollOperatorFactoryChain.ts @@ -14,7 +14,8 @@ import ScrollToEndOperator from "./ScrollToEndOperator"; @injectable() export default class ScrollOperatorFactoryChain - implements OperatorFactoryChain { + implements OperatorFactoryChain +{ constructor( @inject("ScrollPresenter") private readonly scrollPresenter: ScrollPresenter, diff --git a/src/content/operators/impls/ScrollToBottomOperator.ts b/src/content/operators/impls/ScrollToBottomOperator.ts index 4db521b..d17ff46 100644 --- a/src/content/operators/impls/ScrollToBottomOperator.ts +++ b/src/content/operators/impls/ScrollToBottomOperator.ts @@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository"; export default class ScrollToBottomOperator extends AbstractScrollOperator - implements Operator { + implements Operator +{ constructor( private readonly presenter: ScrollPresenter, settingRepository: SettingRepository diff --git a/src/content/operators/impls/ScrollToEndOperator.ts b/src/content/operators/impls/ScrollToEndOperator.ts index 8217e15..9469a29 100644 --- a/src/content/operators/impls/ScrollToEndOperator.ts +++ b/src/content/operators/impls/ScrollToEndOperator.ts @@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository"; export default class ScrollToEndOperator extends AbstractScrollOperator - implements Operator { + implements Operator +{ constructor( private readonly presenter: ScrollPresenter, settingRepository: SettingRepository diff --git a/src/content/operators/impls/ScrollToHomeOperator.ts b/src/content/operators/impls/ScrollToHomeOperator.ts index a0d7701..f7b1bf6 100644 --- a/src/content/operators/impls/ScrollToHomeOperator.ts +++ b/src/content/operators/impls/ScrollToHomeOperator.ts @@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository"; export default class ScrollToHomeOperator extends AbstractScrollOperator - implements Operator { + implements Operator +{ constructor( private readonly presenter: ScrollPresenter, settingRepository: SettingRepository diff --git a/src/content/operators/impls/ScrollToTopOperator.ts b/src/content/operators/impls/ScrollToTopOperator.ts index 6075758..cba59eb 100644 --- a/src/content/operators/impls/ScrollToTopOperator.ts +++ b/src/content/operators/impls/ScrollToTopOperator.ts @@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository"; export default class ScrollToTopOperator extends AbstractScrollOperator - implements Operator { + implements Operator +{ constructor( private readonly presenter: ScrollPresenter, settingRepository: SettingRepository diff --git a/src/content/operators/impls/VerticalScrollOperator.ts b/src/content/operators/impls/VerticalScrollOperator.ts index 4ab336c..d852c28 100644 --- a/src/content/operators/impls/VerticalScrollOperator.ts +++ b/src/content/operators/impls/VerticalScrollOperator.ts @@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository"; export default class VerticalScrollOperator extends AbstractScrollOperator - implements Operator { + implements Operator +{ constructor( private readonly presenter: ScrollPresenter, settingRepository: SettingRepository, diff --git a/src/content/presenters/ScrollPresenter.ts b/src/content/presenters/ScrollPresenter.ts index 78bec00..3f39784 100644 --- a/src/content/presenters/ScrollPresenter.ts +++ b/src/content/presenters/ScrollPresenter.ts @@ -21,12 +21,8 @@ const canBeScrolled = (element: Element): boolean => { // Check if the element's overflow and visibility permit scrolling. // Credit: https://github.com/philc/vimium/blob/bdf654aebe6f570f427c5f7bc9592cad86e642b5/content_scripts/scroller.js#L74 const isScrollableStyle = (element: Element): boolean => { - const { - overflowX, - overflowY, - overflow, - visibility, - } = window.getComputedStyle(element); + const { overflowX, overflowY, overflow, visibility } = + window.getComputedStyle(element); if ([overflow, overflowX, overflowY].includes("hidden")) { return false; } |