From 9546dc2aa39ab096ccc723786e718a739d0bdaf9 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 27 Jan 2022 00:17:22 +0100 Subject: refactor: Coding conventions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure that files have a default import with the same name as the file whenever possible to reduce surprise. Also shuffles around some file names for better legibility. Signed-off-by: Kristóf Marussy --- packages/shared/src/index.ts | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'packages/shared/src/index.ts') diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index 55cf5ce..3d30488 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts @@ -22,40 +22,33 @@ export type { default as SophieRenderer } from './contextBridge/SophieRenderer'; export { MainToRendererIpcMessage, RendererToMainIpcMessage } from './ipc'; -export type { Action, BrowserViewBounds, ThemeSource } from './schemas'; -export { action, browserViewBounds, themeSource } from './schemas'; +export { Action, BrowserViewBounds, ThemeSource } from './schemas'; export type { - GlobalSettings, GlobalSettingsSnapshotIn, GlobalSettingsSnapshotOut, } from './stores/GlobalSettings'; -export { globalSettings } from './stores/GlobalSettings'; +export { default as GlobalSettings } from './stores/GlobalSettings'; -export type { Profile } from './stores/Profile'; -export { profile } from './stores/Profile'; +export { default as Profile } from './stores/Profile'; export type { - ProfileSettings, ProfileSettingsSnapshotIn, ProfileSettingsSnapshotOut, } from './stores/ProfileSettings'; -export { profileSettings } from './stores/ProfileSettings'; +export { default as ProfileSettings } from './stores/ProfileSettings'; -export type { Service } from './stores/Service'; -export { service } from './stores/Service'; +export { default as Service } from './stores/Service'; export type { - ServiceSettings, ServiceSettingsSnapshotIn, ServiceSettingsSnapshotOut, } from './stores/ServiceSettings'; -export { serviceSettings } from './stores/ServiceSettings'; +export { default as ServiceSettings } from './stores/ServiceSettings'; export type { - SharedStore, SharedStoreListener, SharedStoreSnapshotIn, SharedStoreSnapshotOut, } from './stores/SharedStore'; -export { sharedStore } from './stores/SharedStore'; +export { default as SharedStore } from './stores/SharedStore'; -- cgit v1.2.3-54-g00ecf