From d85f09cbed5f3d2501f791e689011ae127df1cbb Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 9 Jan 2022 20:33:53 +0100 Subject: build: Add prettier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit eslint will also enforce prettier rules, so there is no need to call prettier separately in CI. Signed-off-by: Kristóf Marussy --- packages/shared/src/index.ts | 18 +++++++----------- packages/shared/src/stores/Config.ts | 7 +------ packages/shared/src/stores/SharedStore.ts | 3 ++- 3 files changed, 10 insertions(+), 18 deletions(-) (limited to 'packages/shared/src') diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index 9828ec4..6383f63 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts @@ -22,18 +22,14 @@ export type { SophieRenderer } from './contextBridge/SophieRenderer'; export { MainToRendererIpcMessage, RendererToMainIpcMessage } from './ipc'; -export type { - Action, - BrowserViewBounds, - ThemeSource, -} from './schemas'; -export { - action, - browserViewBounds, - themeSource, -} from './schemas'; +export type { Action, BrowserViewBounds, ThemeSource } from './schemas'; +export { action, browserViewBounds, themeSource } from './schemas'; -export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config'; +export type { + Config, + ConfigSnapshotIn, + ConfigSnapshotOut, +} from './stores/Config'; export { config } from './stores/Config'; export type { diff --git a/packages/shared/src/stores/Config.ts b/packages/shared/src/stores/Config.ts index 432945c..1d98a33 100644 --- a/packages/shared/src/stores/Config.ts +++ b/packages/shared/src/stores/Config.ts @@ -18,12 +18,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import { - Instance, - types, - SnapshotIn, - SnapshotOut, -} from 'mobx-state-tree'; +import { Instance, types, SnapshotIn, SnapshotOut } from 'mobx-state-tree'; import { themeSource } from '../schemas'; diff --git a/packages/shared/src/stores/SharedStore.ts b/packages/shared/src/stores/SharedStore.ts index c6c3ddc..cb14394 100644 --- a/packages/shared/src/stores/SharedStore.ts +++ b/packages/shared/src/stores/SharedStore.ts @@ -37,7 +37,8 @@ export interface SharedStore extends Instance {} export interface SharedStoreSnapshotIn extends SnapshotIn {} -export interface SharedStoreSnapshotOut extends SnapshotOut {} +export interface SharedStoreSnapshotOut + extends SnapshotOut {} export interface SharedStoreListener { onSnapshot(snapshot: SharedStoreSnapshotIn): void; -- cgit v1.2.3-54-g00ecf