diff --git a/playwright/testcontainers/mas.ts b/playwright/testcontainers/mas.ts index 82f99ce8350..bdd071ebc2e 100644 --- a/playwright/testcontainers/mas.ts +++ b/playwright/testcontainers/mas.ts @@ -5,7 +5,13 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { AbstractStartedContainer, GenericContainer, type StartedTestContainer, Wait, type ExecResult } from "testcontainers"; +import { + AbstractStartedContainer, + GenericContainer, + type StartedTestContainer, + Wait, + type ExecResult, +} from "testcontainers"; import { type StartedPostgreSqlContainer } from "@testcontainers/postgresql"; import * as YAML from "yaml"; diff --git a/playwright/testcontainers/synapse.ts b/playwright/testcontainers/synapse.ts index ea9cfff657f..c469c6d6a7a 100644 --- a/playwright/testcontainers/synapse.ts +++ b/playwright/testcontainers/synapse.ts @@ -5,7 +5,13 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { AbstractStartedContainer, GenericContainer, type RestartOptions, type StartedTestContainer, Wait } from "testcontainers"; +import { + AbstractStartedContainer, + GenericContainer, + type RestartOptions, + type StartedTestContainer, + Wait, +} from "testcontainers"; import { type APIRequestContext, type TestInfo } from "@playwright/test"; import crypto from "node:crypto"; import * as YAML from "yaml"; diff --git a/src/@types/react.d.ts b/src/@types/react.d.ts index 4216d71acd2..d66c22e56f2 100644 --- a/src/@types/react.d.ts +++ b/src/@types/react.d.ts @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import {type PropsWithChildren} from "react"; +import { type PropsWithChildren } from "react"; import type React from "react"; diff --git a/src/AddThreepid.ts b/src/AddThreepid.ts index f73073eef00..8924399886c 100644 --- a/src/AddThreepid.ts +++ b/src/AddThreepid.ts @@ -23,7 +23,9 @@ import Modal from "./Modal"; import { _t, UserFriendlyError } from "./languageHandler"; import IdentityAuthClient from "./IdentityAuthClient"; import { SSOAuthEntry } from "./components/views/auth/InteractiveAuthEntryComponents"; -import InteractiveAuthDialog, { type InteractiveAuthDialogProps } from "./components/views/dialogs/InteractiveAuthDialog"; +import InteractiveAuthDialog, { + type InteractiveAuthDialogProps, +} from "./components/views/dialogs/InteractiveAuthDialog"; function getIdServerDomain(matrixClient: MatrixClient): string { const idBaseUrl = matrixClient.getIdentityServerUrl(true); diff --git a/src/Lifecycle.ts b/src/Lifecycle.ts index 9147f285576..3ef7c56e821 100644 --- a/src/Lifecycle.ts +++ b/src/Lifecycle.ts @@ -10,7 +10,13 @@ Please see LICENSE files in the repository root for full details. */ import { type ReactNode } from "react"; -import { createClient, type MatrixClient, SSOAction, type OidcTokenRefresher, decodeBase64 } from "matrix-js-sdk/src/matrix"; +import { + createClient, + type MatrixClient, + SSOAction, + type OidcTokenRefresher, + decodeBase64, +} from "matrix-js-sdk/src/matrix"; import { type AESEncryptedSecretStoragePayload } from "matrix-js-sdk/src/types"; import { type QueryDict } from "matrix-js-sdk/src/utils"; import { logger } from "matrix-js-sdk/src/logger"; diff --git a/src/SecurityManager.ts b/src/SecurityManager.ts index e564df04356..b497c57a10c 100644 --- a/src/SecurityManager.ts +++ b/src/SecurityManager.ts @@ -15,7 +15,9 @@ import Modal from "./Modal"; import { MatrixClientPeg } from "./MatrixClientPeg"; import { _t } from "./languageHandler"; import { isSecureBackupRequired } from "./utils/WellKnownUtils"; -import AccessSecretStorageDialog, { type KeyParams } from "./components/views/dialogs/security/AccessSecretStorageDialog"; +import AccessSecretStorageDialog, { + type KeyParams, +} from "./components/views/dialogs/security/AccessSecretStorageDialog"; import { ModuleRunner } from "./modules/ModuleRunner"; import QuestionDialog from "./components/views/dialogs/QuestionDialog"; import InteractiveAuthDialog from "./components/views/dialogs/InteractiveAuthDialog"; diff --git a/src/SlashCommands.tsx b/src/SlashCommands.tsx index c4f9643e862..4a4a80f7236 100644 --- a/src/SlashCommands.tsx +++ b/src/SlashCommands.tsx @@ -10,7 +10,14 @@ Please see LICENSE files in the repository root for full details. */ import * as React from "react"; -import { ContentHelpers, Direction, EventType, type IContent, type MRoomTopicEventContent, type User } from "matrix-js-sdk/src/matrix"; +import { + ContentHelpers, + Direction, + EventType, + type IContent, + type MRoomTopicEventContent, + type User, +} from "matrix-js-sdk/src/matrix"; import { logger } from "matrix-js-sdk/src/logger"; import { KnownMembership, type RoomMemberEventContent } from "matrix-js-sdk/src/types"; diff --git a/src/Terms.ts b/src/Terms.ts index 8b288e205f8..002ad0464fa 100644 --- a/src/Terms.ts +++ b/src/Terms.ts @@ -7,7 +7,13 @@ Please see LICENSE files in the repository root for full details. */ import classNames from "classnames"; -import { type SERVICE_TYPES, type MatrixClient, type Terms, type Policy, type InternationalisedPolicy } from "matrix-js-sdk/src/matrix"; +import { + type SERVICE_TYPES, + type MatrixClient, + type Terms, + type Policy, + type InternationalisedPolicy, +} from "matrix-js-sdk/src/matrix"; import { logger } from "matrix-js-sdk/src/logger"; import Modal from "./Modal"; diff --git a/src/accessibility/roving/RovingTabIndexWrapper.tsx b/src/accessibility/roving/RovingTabIndexWrapper.tsx index 27429d7ba8a..aa9b1ad8c14 100644 --- a/src/accessibility/roving/RovingTabIndexWrapper.tsx +++ b/src/accessibility/roving/RovingTabIndexWrapper.tsx @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import {type ReactElement, type RefCallback} from "react"; +import { type ReactElement, type RefCallback } from "react"; import type React from "react"; import { useRovingTabIndex } from "../RovingTabIndex"; diff --git a/src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx b/src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx index a02fcdd4e91..5d40967bb4e 100644 --- a/src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx +++ b/src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx @@ -10,7 +10,13 @@ Please see LICENSE files in the repository root for full details. import React, { createRef } from "react"; import FileSaver from "file-saver"; import { logger } from "matrix-js-sdk/src/logger"; -import { type AuthDict, type CrossSigningKeys, MatrixError, type UIAFlow, type UIAResponse } from "matrix-js-sdk/src/matrix"; +import { + type AuthDict, + type CrossSigningKeys, + MatrixError, + type UIAFlow, + type UIAResponse, +} from "matrix-js-sdk/src/matrix"; import { type GeneratedSecretStorageKey } from "matrix-js-sdk/src/crypto-api"; import classNames from "classnames"; import CheckmarkIcon from "@vector-im/compound-design-tokens/assets/web/icons/check"; diff --git a/src/autocomplete/Autocompleter.ts b/src/autocomplete/Autocompleter.ts index 0878a93cb19..b3ab0ade467 100644 --- a/src/autocomplete/Autocompleter.ts +++ b/src/autocomplete/Autocompleter.ts @@ -15,7 +15,7 @@ import UserProvider from "./UserProvider"; import EmojiProvider from "./EmojiProvider"; import NotifProvider from "./NotifProvider"; import { timeout } from "../utils/promise"; -import {type ICommand} from "./AutocompleteProvider"; +import { type ICommand } from "./AutocompleteProvider"; import type AutocompleteProvider from "./AutocompleteProvider"; import SpaceProvider from "./SpaceProvider"; import { TimelineRenderingType } from "../contexts/RoomContext"; diff --git a/src/components/structures/AutocompleteInput.tsx b/src/components/structures/AutocompleteInput.tsx index fb07d154941..9767bd57619 100644 --- a/src/components/structures/AutocompleteInput.tsx +++ b/src/components/structures/AutocompleteInput.tsx @@ -6,7 +6,14 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import React, { useState, type ReactNode, type ChangeEvent, type KeyboardEvent, useRef, type ReactElement } from "react"; +import React, { + useState, + type ReactNode, + type ChangeEvent, + type KeyboardEvent, + useRef, + type ReactElement, +} from "react"; import classNames from "classnames"; import { SearchIcon, CloseIcon } from "@vector-im/compound-design-tokens/assets/web/icons"; diff --git a/src/components/structures/MatrixChat.tsx b/src/components/structures/MatrixChat.tsx index b4ce73b57cd..d176afc9a2f 100644 --- a/src/components/structures/MatrixChat.tsx +++ b/src/components/structures/MatrixChat.tsx @@ -67,7 +67,10 @@ import { UPDATE_STATUS_INDICATOR, } from "../../stores/notifications/RoomNotificationStateStore"; import { SettingLevel } from "../../settings/SettingLevel"; -import ThreepidInviteStore, { type IThreepidInvite, type IThreepidInviteWireFormat } from "../../stores/ThreepidInviteStore"; +import ThreepidInviteStore, { + type IThreepidInvite, + type IThreepidInviteWireFormat, +} from "../../stores/ThreepidInviteStore"; import { UIFeature } from "../../settings/UIFeature"; import DialPadModal from "../views/voip/DialPadModal"; import { showToast as showMobileGuideToast } from "../../toasts/MobileGuideToast"; diff --git a/src/components/structures/MessagePanel.tsx b/src/components/structures/MessagePanel.tsx index a7e13d5a139..9f535da257f 100644 --- a/src/components/structures/MessagePanel.tsx +++ b/src/components/structures/MessagePanel.tsx @@ -8,7 +8,14 @@ Please see LICENSE files in the repository root for full details. import React, { createRef, type ReactNode, type TransitionEvent } from "react"; import classNames from "classnames"; -import { type Room, type MatrixClient, RoomStateEvent, EventStatus, type MatrixEvent, EventType } from "matrix-js-sdk/src/matrix"; +import { + type Room, + type MatrixClient, + RoomStateEvent, + EventStatus, + type MatrixEvent, + EventType, +} from "matrix-js-sdk/src/matrix"; import { logger } from "matrix-js-sdk/src/logger"; import { isSupportedReceiptType } from "matrix-js-sdk/src/utils"; diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index 7ac5da1e9f0..a64b118c2c3 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -9,7 +9,15 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import React, { type ChangeEvent, type ComponentProps, createRef, type ReactElement, type ReactNode, type RefObject, type JSX } from "react"; +import React, { + type ChangeEvent, + type ComponentProps, + createRef, + type ReactElement, + type ReactNode, + type RefObject, + type JSX, +} from "react"; import classNames from "classnames"; import { type IRecommendedVersion, diff --git a/src/components/structures/grouper/BaseGrouper.ts b/src/components/structures/grouper/BaseGrouper.ts index 2953497883d..c0fc83080e6 100644 --- a/src/components/structures/grouper/BaseGrouper.ts +++ b/src/components/structures/grouper/BaseGrouper.ts @@ -9,7 +9,7 @@ Please see LICENSE files in the repository root for full details. import { type ReactNode } from "react"; import { type MatrixEvent } from "matrix-js-sdk/src/matrix"; -import {type WrappedEvent} from "../MessagePanel"; +import { type WrappedEvent } from "../MessagePanel"; import type MessagePanel from "../MessagePanel"; /* Grouper classes determine when events can be grouped together in a summary. diff --git a/src/components/structures/grouper/CreationGrouper.tsx b/src/components/structures/grouper/CreationGrouper.tsx index c062f711984..009f5bdc265 100644 --- a/src/components/structures/grouper/CreationGrouper.tsx +++ b/src/components/structures/grouper/CreationGrouper.tsx @@ -11,7 +11,7 @@ import { EventType, M_BEACON_INFO, type MatrixEvent } from "matrix-js-sdk/src/ma import { KnownMembership } from "matrix-js-sdk/src/types"; import { BaseGrouper } from "./BaseGrouper"; -import {type WrappedEvent} from "../MessagePanel"; +import { type WrappedEvent } from "../MessagePanel"; import type MessagePanel from "../MessagePanel"; import DMRoomMap from "../../../utils/DMRoomMap"; import { _t } from "../../../languageHandler"; diff --git a/src/components/views/avatars/DecoratedRoomAvatar.tsx b/src/components/views/avatars/DecoratedRoomAvatar.tsx index 02df72241e7..89b89af12ee 100644 --- a/src/components/views/avatars/DecoratedRoomAvatar.tsx +++ b/src/components/views/avatars/DecoratedRoomAvatar.tsx @@ -8,7 +8,15 @@ Please see LICENSE files in the repository root for full details. import React from "react"; import classNames from "classnames"; -import { EventType, JoinRule, type MatrixEvent, type Room, RoomEvent, type User, UserEvent } from "matrix-js-sdk/src/matrix"; +import { + EventType, + JoinRule, + type MatrixEvent, + type Room, + RoomEvent, + type User, + UserEvent, +} from "matrix-js-sdk/src/matrix"; import { UnstableValue } from "matrix-js-sdk/src/NamespacedValue"; import { Tooltip } from "@vector-im/compound-web"; diff --git a/src/components/views/dialogs/BulkRedactDialog.tsx b/src/components/views/dialogs/BulkRedactDialog.tsx index 2d9c07da37f..ace7f828616 100644 --- a/src/components/views/dialogs/BulkRedactDialog.tsx +++ b/src/components/views/dialogs/BulkRedactDialog.tsx @@ -8,7 +8,14 @@ Please see LICENSE files in the repository root for full details. import React, { useState } from "react"; import { logger } from "matrix-js-sdk/src/logger"; -import { type MatrixClient, type RoomMember, type Room, type MatrixEvent, EventTimeline, EventType } from "matrix-js-sdk/src/matrix"; +import { + type MatrixClient, + type RoomMember, + type Room, + type MatrixEvent, + EventTimeline, + EventType, +} from "matrix-js-sdk/src/matrix"; import { _t } from "../../../languageHandler"; import dis from "../../../dispatcher/dispatcher"; diff --git a/src/components/views/dialogs/WidgetCapabilitiesPromptDialog.tsx b/src/components/views/dialogs/WidgetCapabilitiesPromptDialog.tsx index 3d09b19279a..bde310788ca 100644 --- a/src/components/views/dialogs/WidgetCapabilitiesPromptDialog.tsx +++ b/src/components/views/dialogs/WidgetCapabilitiesPromptDialog.tsx @@ -7,7 +7,13 @@ Please see LICENSE files in the repository root for full details. */ import React from "react"; -import { type Capability, isTimelineCapability, type Widget, WidgetEventCapability, type WidgetKind } from "matrix-widget-api"; +import { + type Capability, + isTimelineCapability, + type Widget, + WidgetEventCapability, + type WidgetKind, +} from "matrix-widget-api"; import { lexicographicCompare } from "matrix-js-sdk/src/utils"; import BaseDialog from "./BaseDialog"; diff --git a/src/components/views/elements/Dropdown.tsx b/src/components/views/elements/Dropdown.tsx index bd381782f36..6fc54a0e0bc 100644 --- a/src/components/views/elements/Dropdown.tsx +++ b/src/components/views/elements/Dropdown.tsx @@ -7,7 +7,14 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import React, { type ChangeEvent, createRef, type CSSProperties, type ReactElement, type ReactNode, type Ref } from "react"; +import React, { + type ChangeEvent, + createRef, + type CSSProperties, + type ReactElement, + type ReactNode, + type Ref, +} from "react"; import classnames from "classnames"; import AccessibleButton, { type ButtonEvent } from "./AccessibleButton"; diff --git a/src/components/views/messages/IBodyProps.ts b/src/components/views/messages/IBodyProps.ts index 6c3b4364cc4..8ef1dc7fda2 100644 --- a/src/components/views/messages/IBodyProps.ts +++ b/src/components/views/messages/IBodyProps.ts @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import {type LegacyRef} from "react"; +import { type LegacyRef } from "react"; import { type MatrixEvent } from "matrix-js-sdk/src/matrix"; import type React from "react"; diff --git a/src/components/views/messages/MessageActionBar.tsx b/src/components/views/messages/MessageActionBar.tsx index 750ec5efb5a..e6838c635f2 100644 --- a/src/components/views/messages/MessageActionBar.tsx +++ b/src/components/views/messages/MessageActionBar.tsx @@ -19,7 +19,8 @@ import { EventTimeline, RoomStateEvent, EventType, - type Relations } from "matrix-js-sdk/src/matrix"; + type Relations, +} from "matrix-js-sdk/src/matrix"; import classNames from "classnames"; import { PinIcon, diff --git a/src/components/views/rooms/Autocomplete.tsx b/src/components/views/rooms/Autocomplete.tsx index 31cbecd206a..f884bd3946c 100644 --- a/src/components/views/rooms/Autocomplete.tsx +++ b/src/components/views/rooms/Autocomplete.tsx @@ -12,7 +12,11 @@ import { flatMap } from "lodash"; import { type Room } from "matrix-js-sdk/src/matrix"; import { defer } from "matrix-js-sdk/src/utils"; -import Autocompleter, { type ICompletion, type ISelectionRange, type IProviderCompletions } from "../../../autocomplete/Autocompleter"; +import Autocompleter, { + type ICompletion, + type ISelectionRange, + type IProviderCompletions, +} from "../../../autocomplete/Autocompleter"; import SettingsStore from "../../../settings/SettingsStore"; import RoomContext from "../../../contexts/RoomContext"; diff --git a/src/components/views/rooms/EditMessageComposer.tsx b/src/components/views/rooms/EditMessageComposer.tsx index 65b375980c8..92d60b75711 100644 --- a/src/components/views/rooms/EditMessageComposer.tsx +++ b/src/components/views/rooms/EditMessageComposer.tsx @@ -11,7 +11,11 @@ import classNames from "classnames"; import { EventStatus, type MatrixEvent, type Room, MsgType } from "matrix-js-sdk/src/matrix"; import { logger } from "matrix-js-sdk/src/logger"; import { type Composer as ComposerEvent } from "@matrix-org/analytics-events/types/typescript/Composer"; -import { type ReplacementEvent, type RoomMessageEventContent, type RoomMessageTextEventContent } from "matrix-js-sdk/src/types"; +import { + type ReplacementEvent, + type RoomMessageEventContent, + type RoomMessageTextEventContent, +} from "matrix-js-sdk/src/types"; import { _t } from "../../../languageHandler"; import dis from "../../../dispatcher/dispatcher"; diff --git a/src/components/views/rooms/MessageComposerButtons.tsx b/src/components/views/rooms/MessageComposerButtons.tsx index cdf4b15f2c8..67110998eb4 100644 --- a/src/components/views/rooms/MessageComposerButtons.tsx +++ b/src/components/views/rooms/MessageComposerButtons.tsx @@ -7,7 +7,13 @@ Please see LICENSE files in the repository root for full details. */ import classNames from "classnames"; -import { type IEventRelation, type Room, type MatrixClient, THREAD_RELATION_TYPE, M_POLL_START } from "matrix-js-sdk/src/matrix"; +import { + type IEventRelation, + type Room, + type MatrixClient, + THREAD_RELATION_TYPE, + M_POLL_START, +} from "matrix-js-sdk/src/matrix"; import React, { createContext, type ReactElement, type ReactNode, useContext, useRef } from "react"; import { _t } from "../../../languageHandler"; diff --git a/src/components/views/rooms/RoomPreviewBar.tsx b/src/components/views/rooms/RoomPreviewBar.tsx index 923650ff108..f823bb72945 100644 --- a/src/components/views/rooms/RoomPreviewBar.tsx +++ b/src/components/views/rooms/RoomPreviewBar.tsx @@ -10,7 +10,10 @@ import React, { type ChangeEvent, type ReactNode } from "react"; import { type Room, type RoomMember, EventType, RoomType, JoinRule, type MatrixError } from "matrix-js-sdk/src/matrix"; import { KnownMembership, type RoomJoinRulesEventContent } from "matrix-js-sdk/src/types"; import classNames from "classnames"; -import { type RoomPreviewOpts, RoomViewLifecycle } from "@matrix-org/react-sdk-module-api/lib/lifecycles/RoomViewLifecycle"; +import { + type RoomPreviewOpts, + RoomViewLifecycle, +} from "@matrix-org/react-sdk-module-api/lib/lifecycles/RoomViewLifecycle"; import { MatrixClientPeg } from "../../../MatrixClientPeg"; import dis from "../../../dispatcher/dispatcher"; diff --git a/src/components/views/rooms/wysiwyg_composer/utils/createMessageContent.ts b/src/components/views/rooms/wysiwyg_composer/utils/createMessageContent.ts index ba917d618ae..63fe8ca3619 100644 --- a/src/components/views/rooms/wysiwyg_composer/utils/createMessageContent.ts +++ b/src/components/views/rooms/wysiwyg_composer/utils/createMessageContent.ts @@ -8,7 +8,11 @@ Please see LICENSE files in the repository root for full details. import { richToPlain, plainToRich } from "@vector-im/matrix-wysiwyg"; import { type IContent, type IEventRelation, MatrixEvent, MsgType } from "matrix-js-sdk/src/matrix"; -import { type ReplacementEvent, type RoomMessageEventContent, type RoomMessageTextEventContent } from "matrix-js-sdk/src/types"; +import { + type ReplacementEvent, + type RoomMessageEventContent, + type RoomMessageTextEventContent, +} from "matrix-js-sdk/src/types"; import SettingsStore from "../../../../../settings/SettingsStore"; import { parsePermalink } from "../../../../../utils/permalinks/Permalinks"; diff --git a/src/components/views/settings/Notifications.tsx b/src/components/views/settings/Notifications.tsx index 7f6949c15fe..79e792584cb 100644 --- a/src/components/views/settings/Notifications.tsx +++ b/src/components/views/settings/Notifications.tsx @@ -28,7 +28,8 @@ import { PushRuleVectorState, VectorPushRulesDefinitions, VectorState, - type VectorPushRuleDefinition } from "../../../notifications"; + type VectorPushRuleDefinition, +} from "../../../notifications"; import { _t, type TranslatedString } from "../../../languageHandler"; import LabelledToggleSwitch from "../elements/LabelledToggleSwitch"; import SettingsStore from "../../../settings/SettingsStore"; diff --git a/src/components/views/settings/ThemeChoicePanel.tsx b/src/components/views/settings/ThemeChoicePanel.tsx index f3aa718bff3..6581e823fce 100644 --- a/src/components/views/settings/ThemeChoicePanel.tsx +++ b/src/components/views/settings/ThemeChoicePanel.tsx @@ -31,7 +31,12 @@ import dis from "../../../dispatcher/dispatcher"; import { type RecheckThemePayload } from "../../../dispatcher/payloads/RecheckThemePayload"; import { Action } from "../../../dispatcher/actions"; import { useTheme } from "../../../hooks/useTheme"; -import { findHighContrastTheme, getOrderedThemes, type CustomTheme as CustomThemeType, type ITheme } from "../../../theme"; +import { + findHighContrastTheme, + getOrderedThemes, + type CustomTheme as CustomThemeType, + type ITheme, +} from "../../../theme"; import { useSettingValue } from "../../../hooks/useSettings"; /** diff --git a/src/components/views/settings/devices/LoginWithQRSection.tsx b/src/components/views/settings/devices/LoginWithQRSection.tsx index 27f47aba0f8..523633c8845 100644 --- a/src/components/views/settings/devices/LoginWithQRSection.tsx +++ b/src/components/views/settings/devices/LoginWithQRSection.tsx @@ -7,7 +7,12 @@ Please see LICENSE files in the repository root for full details. */ import React from "react"; -import { type IServerVersions, type OidcClientConfig, type MatrixClient, DEVICE_CODE_SCOPE } from "matrix-js-sdk/src/matrix"; +import { + type IServerVersions, + type OidcClientConfig, + type MatrixClient, + DEVICE_CODE_SCOPE, +} from "matrix-js-sdk/src/matrix"; import QrCodeIcon from "@vector-im/compound-design-tokens/assets/web/icons/qr-code"; import { Text } from "@vector-im/compound-web"; diff --git a/src/components/views/settings/tabs/room/RolesRoomSettingsTab.tsx b/src/components/views/settings/tabs/room/RolesRoomSettingsTab.tsx index 7eccb9f2a0a..3b6855bc19f 100644 --- a/src/components/views/settings/tabs/room/RolesRoomSettingsTab.tsx +++ b/src/components/views/settings/tabs/room/RolesRoomSettingsTab.tsx @@ -7,7 +7,14 @@ Please see LICENSE files in the repository root for full details. */ import React from "react"; -import { EventType, type RoomMember, type RoomState, RoomStateEvent, type Room, type IContent } from "matrix-js-sdk/src/matrix"; +import { + EventType, + type RoomMember, + type RoomState, + RoomStateEvent, + type Room, + type IContent, +} from "matrix-js-sdk/src/matrix"; import { logger } from "matrix-js-sdk/src/logger"; import { throttle, get } from "lodash"; import { KnownMembership, type RoomPowerLevelsEventContent } from "matrix-js-sdk/src/types"; diff --git a/src/components/views/settings/tabs/user/KeyboardUserSettingsTab.tsx b/src/components/views/settings/tabs/user/KeyboardUserSettingsTab.tsx index 7b3333811ae..44e36236254 100644 --- a/src/components/views/settings/tabs/user/KeyboardUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/KeyboardUserSettingsTab.tsx @@ -9,7 +9,12 @@ Please see LICENSE files in the repository root for full details. import React from "react"; -import { type ICategory, CATEGORIES, CategoryName, type KeyBindingAction } from "../../../../../accessibility/KeyboardShortcuts"; +import { + type ICategory, + CATEGORIES, + CategoryName, + type KeyBindingAction, +} from "../../../../../accessibility/KeyboardShortcuts"; import { _t } from "../../../../../languageHandler"; import { getKeyboardShortcutDisplayName, diff --git a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx index b83fd37d1d1..758fbf3e4af 100644 --- a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx @@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details. import React, { type ReactNode } from "react"; import { sleep } from "matrix-js-sdk/src/utils"; -import { type Room, RoomEvent , type IServerVersions } from "matrix-js-sdk/src/matrix"; +import { type Room, RoomEvent, type IServerVersions } from "matrix-js-sdk/src/matrix"; import { KnownMembership, type Membership } from "matrix-js-sdk/src/types"; import { logger } from "matrix-js-sdk/src/logger"; diff --git a/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx b/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx index c3209471eef..1abd2a16341 100644 --- a/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx +++ b/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx @@ -7,7 +7,14 @@ Please see LICENSE files in the repository root for full details. */ import React, { useState } from "react"; -import { type Room, EventType, GuestAccess, HistoryVisibility, JoinRule, type MatrixClient } from "matrix-js-sdk/src/matrix"; +import { + type Room, + EventType, + GuestAccess, + HistoryVisibility, + JoinRule, + type MatrixClient, +} from "matrix-js-sdk/src/matrix"; import { _t } from "../../../languageHandler"; import AccessibleButton from "../elements/AccessibleButton"; diff --git a/src/components/views/spaces/SpaceTreeLevel.tsx b/src/components/views/spaces/SpaceTreeLevel.tsx index 818c73cbfb0..cdc35593ae7 100644 --- a/src/components/views/spaces/SpaceTreeLevel.tsx +++ b/src/components/views/spaces/SpaceTreeLevel.tsx @@ -30,7 +30,10 @@ import defaultDispatcher from "../../../dispatcher/dispatcher"; import { Action } from "../../../dispatcher/actions"; import { ContextMenuTooltipButton } from "../../../accessibility/context_menu/ContextMenuTooltipButton"; import { toRightOf, useContextMenu } from "../../structures/ContextMenu"; -import AccessibleButton, { type ButtonEvent, type ButtonProps as AccessibleButtonProps } from "../elements/AccessibleButton"; +import AccessibleButton, { + type ButtonEvent, + type ButtonProps as AccessibleButtonProps, +} from "../elements/AccessibleButton"; import { StaticNotificationState } from "../../../stores/notifications/StaticNotificationState"; import { NotificationLevel } from "../../../stores/notifications/NotificationLevel"; import { getKeyBindingsManager } from "../../../KeyBindingsManager"; diff --git a/src/components/views/voip/LegacyCallView/LegacyCallViewButtons.tsx b/src/components/views/voip/LegacyCallView/LegacyCallViewButtons.tsx index aa92dd0b69b..d9fc85c943f 100644 --- a/src/components/views/voip/LegacyCallView/LegacyCallViewButtons.tsx +++ b/src/components/views/voip/LegacyCallView/LegacyCallViewButtons.tsx @@ -24,7 +24,10 @@ import { import { _t } from "../../../../languageHandler"; import DeviceContextMenu from "../../context_menus/DeviceContextMenu"; import { MediaDeviceKindEnum } from "../../../../MediaDeviceHandler"; -import AccessibleButton, { type ButtonEvent, type ButtonProps as AccessibleButtonProps } from "../../elements/AccessibleButton"; +import AccessibleButton, { + type ButtonEvent, + type ButtonProps as AccessibleButtonProps, +} from "../../elements/AccessibleButton"; // Height of the header duplicated from CSS because we need to subtract it from our max // height to get the max height of the video diff --git a/src/contexts/ScopedRoomContext.tsx b/src/contexts/ScopedRoomContext.tsx index 335a490cd2b..c2ae2dfcd39 100644 --- a/src/contexts/ScopedRoomContext.tsx +++ b/src/contexts/ScopedRoomContext.tsx @@ -7,7 +7,16 @@ Please see LICENSE files in the repository root for full details. */ import { TypedEventEmitter } from "matrix-js-sdk/src/matrix"; -import React, { type ContextType, createContext, memo, type ReactNode, useContext, useEffect, useMemo, useState } from "react"; +import React, { + type ContextType, + createContext, + memo, + type ReactNode, + useContext, + useEffect, + useMemo, + useState, +} from "react"; import { objectKeyChanges } from "../utils/objects.ts"; import { useTypedEventEmitter } from "../hooks/useEventEmitter.ts"; diff --git a/src/editor/caret.ts b/src/editor/caret.ts index 1c5484aa6c8..2f36b4b1bfb 100644 --- a/src/editor/caret.ts +++ b/src/editor/caret.ts @@ -9,7 +9,7 @@ Please see LICENSE files in the repository root for full details. import { needsCaretNodeBefore, needsCaretNodeAfter } from "./render"; import Range from "./range"; import type EditorModel from "./model"; -import {type IPosition} from "./position"; +import { type IPosition } from "./position"; import type DocumentPosition from "./position"; import { type Part, Type } from "./parts"; diff --git a/src/editor/model.ts b/src/editor/model.ts index 62f95424455..4328b666d85 100644 --- a/src/editor/model.ts +++ b/src/editor/model.ts @@ -10,7 +10,7 @@ import { diffAtCaret, diffDeletion, type IDiff } from "./diff"; import DocumentPosition, { type IPosition } from "./position"; import Range from "./range"; import { type SerializedPart, type Part, type PartCreator } from "./parts"; -import {type ICallback} from "./autocomplete"; +import { type ICallback } from "./autocomplete"; import type AutocompleteWrapperModel from "./autocomplete"; import type DocumentOffset from "./offset"; import { type Caret } from "./caret"; diff --git a/src/editor/parts.ts b/src/editor/parts.ts index 703f1dc5d7b..ad49058609e 100644 --- a/src/editor/parts.ts +++ b/src/editor/parts.ts @@ -8,7 +8,11 @@ Please see LICENSE files in the repository root for full details. import { type MatrixClient, type RoomMember, type Room } from "matrix-js-sdk/src/matrix"; -import AutocompleteWrapperModel, { type GetAutocompleterComponent, type UpdateCallback, type UpdateQuery } from "./autocomplete"; +import AutocompleteWrapperModel, { + type GetAutocompleterComponent, + type UpdateCallback, + type UpdateQuery, +} from "./autocomplete"; import { EMOJI_REGEX, unicodeToShortcode } from "../HtmlUtils"; import * as Avatar from "../Avatar"; import defaultDispatcher from "../dispatcher/dispatcher"; diff --git a/src/editor/range.ts b/src/editor/range.ts index 863368d4979..eff439ec811 100644 --- a/src/editor/range.ts +++ b/src/editor/range.ts @@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details. */ import type EditorModel from "./model"; -import {type Predicate} from "./position"; +import { type Predicate } from "./position"; import type DocumentPosition from "./position"; import { type Part } from "./parts"; diff --git a/src/hooks/usePublicRoomDirectory.ts b/src/hooks/usePublicRoomDirectory.ts index 3fd96c0b23d..530e61e0704 100644 --- a/src/hooks/usePublicRoomDirectory.ts +++ b/src/hooks/usePublicRoomDirectory.ts @@ -6,7 +6,12 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { type RoomType, type IProtocol, type IPublicRoomsChunkRoom, type IRoomDirectoryOptions } from "matrix-js-sdk/src/matrix"; +import { + type RoomType, + type IProtocol, + type IPublicRoomsChunkRoom, + type IRoomDirectoryOptions, +} from "matrix-js-sdk/src/matrix"; import { useCallback, useEffect, useState } from "react"; import { type IPublicRoomDirectoryConfig } from "../components/views/directory/NetworkDropdown"; diff --git a/src/indexing/EventIndex.ts b/src/indexing/EventIndex.ts index 19d8c3f15ac..235d68fffdb 100644 --- a/src/indexing/EventIndex.ts +++ b/src/indexing/EventIndex.ts @@ -38,7 +38,13 @@ import PlatformPeg from "../PlatformPeg"; import { MatrixClientPeg } from "../MatrixClientPeg"; import SettingsStore from "../settings/SettingsStore"; import { SettingLevel } from "../settings/SettingLevel"; -import { type ICrawlerCheckpoint, type IEventAndProfile, type IIndexStats, type ILoadArgs, type ISearchArgs } from "./BaseEventIndexManager"; +import { + type ICrawlerCheckpoint, + type IEventAndProfile, + type IIndexStats, + type ILoadArgs, + type ISearchArgs, +} from "./BaseEventIndexManager"; import { asyncFilter } from "../utils/arrays.ts"; // The time in ms that the crawler will wait loop iterations if there diff --git a/src/integrations/IntegrationManagers.ts b/src/integrations/IntegrationManagers.ts index dd8b4c69527..6d8ab69ccc8 100644 --- a/src/integrations/IntegrationManagers.ts +++ b/src/integrations/IntegrationManagers.ts @@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details. */ import { logger } from "matrix-js-sdk/src/logger"; -import { ClientEvent, type IClientWellKnown, type MatrixClient , type MatrixEvent } from "matrix-js-sdk/src/matrix"; +import { ClientEvent, type IClientWellKnown, type MatrixClient, type MatrixEvent } from "matrix-js-sdk/src/matrix"; import SdkConfig from "../SdkConfig"; import Modal from "../Modal"; diff --git a/src/models/Call.ts b/src/models/Call.ts index da59d75366e..8ce5a1d2ca4 100644 --- a/src/models/Call.ts +++ b/src/models/Call.ts @@ -21,7 +21,7 @@ import { logger } from "matrix-js-sdk/src/logger"; import { secureRandomString } from "matrix-js-sdk/src/randomstring"; import { CallType } from "matrix-js-sdk/src/webrtc/call"; import { NamespacedValue } from "matrix-js-sdk/src/NamespacedValue"; -import { type IWidgetApiRequest , type ClientWidgetApi, type IWidgetData } from "matrix-widget-api"; +import { type IWidgetApiRequest, type ClientWidgetApi, type IWidgetData } from "matrix-widget-api"; import { MatrixRTCSession, MatrixRTCSessionEvent, diff --git a/src/modules/ProxiedModuleApi.ts b/src/modules/ProxiedModuleApi.ts index ebcf0910d3f..8f1b980dbe7 100644 --- a/src/modules/ProxiedModuleApi.ts +++ b/src/modules/ProxiedModuleApi.ts @@ -7,7 +7,10 @@ Please see LICENSE files in the repository root for full details. */ import { type ModuleApi } from "@matrix-org/react-sdk-module-api/lib/ModuleApi"; -import { type TranslationStringsObject, type PlainSubstitution } from "@matrix-org/react-sdk-module-api/lib/types/translations"; +import { + type TranslationStringsObject, + type PlainSubstitution, +} from "@matrix-org/react-sdk-module-api/lib/types/translations"; import { type Optional } from "matrix-events-sdk"; import { type DialogContent, type DialogProps } from "@matrix-org/react-sdk-module-api/lib/components/DialogContent"; import { type AccountAuthInfo } from "@matrix-org/react-sdk-module-api/lib/types/AccountAuthInfo"; diff --git a/src/notifications/NotificationUtils.ts b/src/notifications/NotificationUtils.ts index ecd9ca13c02..cce937551c2 100644 --- a/src/notifications/NotificationUtils.ts +++ b/src/notifications/NotificationUtils.ts @@ -6,7 +6,12 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { type PushRuleAction, PushRuleActionName, type TweakHighlight, type TweakSound } from "matrix-js-sdk/src/matrix"; +import { + type PushRuleAction, + PushRuleActionName, + type TweakHighlight, + type TweakSound, +} from "matrix-js-sdk/src/matrix"; export interface PushRuleActions { notify: boolean; diff --git a/src/resizer/distributors/collapse.ts b/src/resizer/distributors/collapse.ts index 78a69b783e1..bd0e874cc42 100644 --- a/src/resizer/distributors/collapse.ts +++ b/src/resizer/distributors/collapse.ts @@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details. import { BaseDistributor } from "./fixed"; import ResizeItem from "../item"; -import {type IConfig} from "../resizer"; +import { type IConfig } from "../resizer"; import type Resizer from "../resizer"; import type Sizer from "../sizer"; diff --git a/src/resizer/distributors/fixed.ts b/src/resizer/distributors/fixed.ts index fcd524789a8..1820492ab76 100644 --- a/src/resizer/distributors/fixed.ts +++ b/src/resizer/distributors/fixed.ts @@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details. import ResizeItem from "../item"; import Sizer from "../sizer"; -import {type IConfig} from "../resizer"; +import { type IConfig } from "../resizer"; import type Resizer from "../resizer"; export abstract class BaseDistributor = ResizeItem> { diff --git a/src/resizer/item.ts b/src/resizer/item.ts index dad51a2e0a9..ed617306933 100644 --- a/src/resizer/item.ts +++ b/src/resizer/item.ts @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import {type IConfig} from "./resizer"; +import { type IConfig } from "./resizer"; import type Resizer from "./resizer"; import type Sizer from "./sizer"; diff --git a/src/settings/SettingsStore.ts b/src/settings/SettingsStore.ts index 6a0974ed231..671a2ac6761 100644 --- a/src/settings/SettingsStore.ts +++ b/src/settings/SettingsStore.ts @@ -20,7 +20,15 @@ import RoomSettingsHandler from "./handlers/RoomSettingsHandler"; import ConfigSettingsHandler from "./handlers/ConfigSettingsHandler"; import { _t } from "../languageHandler"; import dis from "../dispatcher/dispatcher"; -import { type IFeature, type ISetting, type LabGroup, SETTINGS, defaultWatchManager, type SettingKey, type Settings } from "./Settings"; +import { + type IFeature, + type ISetting, + type LabGroup, + SETTINGS, + defaultWatchManager, + type SettingKey, + type Settings, +} from "./Settings"; import LocalEchoWrapper from "./handlers/LocalEchoWrapper"; import { type CallbackFn as WatchCallbackFn } from "./WatchManager"; import { SettingLevel } from "./SettingLevel"; diff --git a/src/settings/handlers/RoomSettingsHandler.ts b/src/settings/handlers/RoomSettingsHandler.ts index d7c01153515..c574ea1ea40 100644 --- a/src/settings/handlers/RoomSettingsHandler.ts +++ b/src/settings/handlers/RoomSettingsHandler.ts @@ -7,7 +7,13 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { type MatrixClient, type MatrixEvent, type RoomState, RoomStateEvent, type StateEvents } from "matrix-js-sdk/src/matrix"; +import { + type MatrixClient, + type MatrixEvent, + type RoomState, + RoomStateEvent, + type StateEvents, +} from "matrix-js-sdk/src/matrix"; import { defer } from "matrix-js-sdk/src/utils"; import MatrixClientBackedSettingsHandler from "./MatrixClientBackedSettingsHandler"; diff --git a/src/stores/OwnProfileStore.ts b/src/stores/OwnProfileStore.ts index fb19c97cbf5..b2d35a390f7 100644 --- a/src/stores/OwnProfileStore.ts +++ b/src/stores/OwnProfileStore.ts @@ -6,7 +6,14 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { type MatrixEvent, RoomStateEvent, MatrixError, type User, UserEvent, EventType } from "matrix-js-sdk/src/matrix"; +import { + type MatrixEvent, + RoomStateEvent, + MatrixError, + type User, + UserEvent, + EventType, +} from "matrix-js-sdk/src/matrix"; import { throttle } from "lodash"; import { type ActionPayload } from "../dispatcher/payloads"; diff --git a/src/stores/RoomViewStore.tsx b/src/stores/RoomViewStore.tsx index 3d61cedf2f2..c691f0af797 100644 --- a/src/stores/RoomViewStore.tsx +++ b/src/stores/RoomViewStore.tsx @@ -17,7 +17,10 @@ import { type ViewRoom as ViewRoomEvent } from "@matrix-org/analytics-events/typ import { type JoinedRoom as JoinedRoomEvent } from "@matrix-org/analytics-events/types/typescript/JoinedRoom"; import { type Optional } from "matrix-events-sdk"; import EventEmitter from "events"; -import { RoomViewLifecycle, type ViewRoomOpts } from "@matrix-org/react-sdk-module-api/lib/lifecycles/RoomViewLifecycle"; +import { + RoomViewLifecycle, + type ViewRoomOpts, +} from "@matrix-org/react-sdk-module-api/lib/lifecycles/RoomViewLifecycle"; import { type MatrixDispatcher } from "../dispatcher/dispatcher"; import { MatrixClientPeg } from "../MatrixClientPeg"; diff --git a/src/stores/room-list/RoomListStore.ts b/src/stores/room-list/RoomListStore.ts index c09f15ee876..e1d2f7b7e8d 100644 --- a/src/stores/room-list/RoomListStore.ts +++ b/src/stores/room-list/RoomListStore.ts @@ -12,7 +12,13 @@ import { logger } from "matrix-js-sdk/src/logger"; import SettingsStore from "../../settings/SettingsStore"; import { DefaultTagID, OrderedDefaultTagIDs, RoomUpdateCause, type TagID } from "./models"; -import { type IListOrderingMap, type ITagMap, type ITagSortingMap, ListAlgorithm, SortAlgorithm } from "./algorithms/models"; +import { + type IListOrderingMap, + type ITagMap, + type ITagSortingMap, + ListAlgorithm, + SortAlgorithm, +} from "./algorithms/models"; import { type ActionPayload } from "../../dispatcher/payloads"; import defaultDispatcher, { type MatrixDispatcher } from "../../dispatcher/dispatcher"; import { readReceiptChangeIsFor } from "../../utils/read-receipts"; diff --git a/src/stores/widgets/WidgetLayoutStore.ts b/src/stores/widgets/WidgetLayoutStore.ts index 5c1709e5cef..eaea0957b0f 100644 --- a/src/stores/widgets/WidgetLayoutStore.ts +++ b/src/stores/widgets/WidgetLayoutStore.ts @@ -20,7 +20,13 @@ import { ReadyWatchingStore } from "../ReadyWatchingStore"; import { SettingLevel } from "../../settings/SettingLevel"; import { arrayFastClone } from "../../utils/arrays"; import { UPDATE_EVENT } from "../AsyncStore"; -import { Container, type IStoredLayout, type ILayoutStateEvent, WIDGET_LAYOUT_EVENT_TYPE, type IWidgetLayouts } from "./types"; +import { + Container, + type IStoredLayout, + type ILayoutStateEvent, + WIDGET_LAYOUT_EVENT_TYPE, + type IWidgetLayouts, +} from "./types"; export type { IStoredLayout, ILayoutStateEvent }; export { Container, WIDGET_LAYOUT_EVENT_TYPE }; diff --git a/src/utils/membership.ts b/src/utils/membership.ts index a07dd4ee67b..ba67d5a6c3e 100644 --- a/src/utils/membership.ts +++ b/src/utils/membership.ts @@ -6,7 +6,14 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { type Room, type RoomMember, type RoomState, RoomStateEvent, type MatrixEvent, type MatrixClient } from "matrix-js-sdk/src/matrix"; +import { + type Room, + type RoomMember, + type RoomState, + RoomStateEvent, + type MatrixEvent, + type MatrixClient, +} from "matrix-js-sdk/src/matrix"; import { KnownMembership, type Membership } from "matrix-js-sdk/src/types"; import { MatrixClientPeg } from "../MatrixClientPeg"; diff --git a/src/utils/permalinks/Permalinks.ts b/src/utils/permalinks/Permalinks.ts index a4be79a5cce..0df4b4beb12 100644 --- a/src/utils/permalinks/Permalinks.ts +++ b/src/utils/permalinks/Permalinks.ts @@ -16,7 +16,7 @@ import MatrixToPermalinkConstructor, { baseUrl as matrixtoBaseUrl, baseUrlPattern as matrixToBaseUrlPattern, } from "./MatrixToPermalinkConstructor"; -import {type PermalinkParts} from "./PermalinkConstructor"; +import { type PermalinkParts } from "./PermalinkConstructor"; import type PermalinkConstructor from "./PermalinkConstructor"; import ElementPermalinkConstructor from "./ElementPermalinkConstructor"; import SdkConfig from "../../SdkConfig"; diff --git a/src/utils/pushRules/monitorSyncedPushRules.ts b/src/utils/pushRules/monitorSyncedPushRules.ts index e5421f12f70..2c9684722c5 100644 --- a/src/utils/pushRules/monitorSyncedPushRules.ts +++ b/src/utils/pushRules/monitorSyncedPushRules.ts @@ -6,7 +6,13 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { type MatrixClient, type MatrixEvent, EventType, type RuleId, type IAnnotatedPushRule } from "matrix-js-sdk/src/matrix"; +import { + type MatrixClient, + type MatrixEvent, + EventType, + type RuleId, + type IAnnotatedPushRule, +} from "matrix-js-sdk/src/matrix"; import { PushProcessor } from "matrix-js-sdk/src/pushprocessor"; import { logger } from "matrix-js-sdk/src/logger"; diff --git a/src/utils/space.tsx b/src/utils/space.tsx index 8fcf08521d8..1a9b104c4bc 100644 --- a/src/utils/space.tsx +++ b/src/utils/space.tsx @@ -25,7 +25,10 @@ import { Action } from "../dispatcher/actions"; import Spinner from "../components/views/elements/Spinner"; import { shouldShowComponent } from "../customisations/helpers/UIComponents"; import { UIComponent } from "../settings/UIFeature"; -import { type OpenSpacePreferencesPayload, type SpacePreferenceTab } from "../dispatcher/payloads/OpenSpacePreferencesPayload"; +import { + type OpenSpacePreferencesPayload, + type SpacePreferenceTab, +} from "../dispatcher/payloads/OpenSpacePreferencesPayload"; import { type OpenSpaceSettingsPayload } from "../dispatcher/payloads/OpenSpaceSettingsPayload"; import { type OpenAddExistingToSpaceDialogPayload } from "../dispatcher/payloads/OpenAddExistingToSpaceDialogPayload"; import { SdkContextClass } from "../contexts/SDKContext"; diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index 69b26c823d9..19fa4551686 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -10,7 +10,12 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { type MatrixClient, type Room, type MatrixEvent, type OidcRegistrationClientMetadata } from "matrix-js-sdk/src/matrix"; +import { + type MatrixClient, + type Room, + type MatrixEvent, + type OidcRegistrationClientMetadata, +} from "matrix-js-sdk/src/matrix"; import React from "react"; import { secureRandomString } from "matrix-js-sdk/src/randomstring"; import { logger } from "matrix-js-sdk/src/logger"; diff --git a/src/vector/platform/SeshatIndexManager.ts b/src/vector/platform/SeshatIndexManager.ts index e6bb0ba15da..88a8889b722 100644 --- a/src/vector/platform/SeshatIndexManager.ts +++ b/src/vector/platform/SeshatIndexManager.ts @@ -6,7 +6,11 @@ Please see LICENSE files in the repository root for full details. */ // eslint-disable-next-line no-restricted-imports -import { type IMatrixProfile, type IEventWithRoomId as IMatrixEvent, type IResultRoomEvents } from "matrix-js-sdk/src/@types/search"; +import { + type IMatrixProfile, + type IEventWithRoomId as IMatrixEvent, + type IResultRoomEvents, +} from "matrix-js-sdk/src/@types/search"; import BaseEventIndexManager, { type ICrawlerCheckpoint, diff --git a/test/test-utils/pushRules.ts b/test/test-utils/pushRules.ts index ea482a84e80..a7b050c8ba4 100644 --- a/test/test-utils/pushRules.ts +++ b/test/test-utils/pushRules.ts @@ -6,7 +6,13 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { type IAnnotatedPushRule, type IPushRule, type IPushRules, type PushRuleKind, type RuleId } from "matrix-js-sdk/src/matrix"; +import { + type IAnnotatedPushRule, + type IPushRule, + type IPushRules, + type PushRuleKind, + type RuleId, +} from "matrix-js-sdk/src/matrix"; /** * Default set of push rules for a new account diff --git a/test/test-utils/test-utils.ts b/test/test-utils/test-utils.ts index 089a94f5704..a8b53abb0ee 100644 --- a/test/test-utils/test-utils.ts +++ b/test/test-utils/test-utils.ts @@ -29,7 +29,8 @@ import { RelationType, JoinRule, type OidcClientConfig, - type GroupCall } from "matrix-js-sdk/src/matrix"; + type GroupCall, +} from "matrix-js-sdk/src/matrix"; import { KnownMembership } from "matrix-js-sdk/src/types"; import { normalize } from "matrix-js-sdk/src/utils"; import { ReEmitter } from "matrix-js-sdk/src/ReEmitter"; diff --git a/test/test-utils/threads.ts b/test/test-utils/threads.ts index af1af32cdf3..7dca8b2ca07 100644 --- a/test/test-utils/threads.ts +++ b/test/test-utils/threads.ts @@ -6,7 +6,14 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { type MatrixClient, type MatrixEvent, MatrixEventEvent, RelationType, type Room, type Thread } from "matrix-js-sdk/src/matrix"; +import { + type MatrixClient, + type MatrixEvent, + MatrixEventEvent, + RelationType, + type Room, + type Thread, +} from "matrix-js-sdk/src/matrix"; import { mkMessage, type MessageEventProps } from "./test-utils"; diff --git a/test/unit-tests/ContentMessages-test.ts b/test/unit-tests/ContentMessages-test.ts index 43f746082d8..2b08cd85e04 100644 --- a/test/unit-tests/ContentMessages-test.ts +++ b/test/unit-tests/ContentMessages-test.ts @@ -7,7 +7,12 @@ Please see LICENSE files in the repository root for full details. */ import { mocked } from "jest-mock"; -import { type ISendEventResponse, type MatrixClient, RelationType, type UploadResponse } from "matrix-js-sdk/src/matrix"; +import { + type ISendEventResponse, + type MatrixClient, + RelationType, + type UploadResponse, +} from "matrix-js-sdk/src/matrix"; import { type ImageInfo } from "matrix-js-sdk/src/types"; import { defer } from "matrix-js-sdk/src/utils"; import encrypt, { type IEncryptedFile } from "matrix-encrypt-attachment"; diff --git a/test/unit-tests/DecryptionFailureTracker-test.ts b/test/unit-tests/DecryptionFailureTracker-test.ts index 4fe9138521a..754a621a4f3 100644 --- a/test/unit-tests/DecryptionFailureTracker-test.ts +++ b/test/unit-tests/DecryptionFailureTracker-test.ts @@ -8,7 +8,12 @@ Please see LICENSE files in the repository root for full details. import { mocked, type Mocked, type MockedObject } from "jest-mock"; import { HttpApiEvent, type MatrixClient, type MatrixEvent, MatrixEventEvent } from "matrix-js-sdk/src/matrix"; import { decryptExistingEvent, mkDecryptionFailureMatrixEvent } from "matrix-js-sdk/src/testing"; -import { type CryptoApi, DecryptionFailureCode, UserVerificationStatus, CryptoEvent } from "matrix-js-sdk/src/crypto-api"; +import { + type CryptoApi, + DecryptionFailureCode, + UserVerificationStatus, + CryptoEvent, +} from "matrix-js-sdk/src/crypto-api"; import { sleep } from "matrix-js-sdk/src/utils"; import { DecryptionFailureTracker, type ErrorProperties } from "../../src/DecryptionFailureTracker"; diff --git a/test/unit-tests/PosthogAnalytics-test.ts b/test/unit-tests/PosthogAnalytics-test.ts index 2204d82645e..91fdd32f2ea 100644 --- a/test/unit-tests/PosthogAnalytics-test.ts +++ b/test/unit-tests/PosthogAnalytics-test.ts @@ -11,7 +11,12 @@ import { type PostHog } from "posthog-js"; import { type MatrixClient } from "matrix-js-sdk/src/matrix"; import { type CryptoApi } from "matrix-js-sdk/src/crypto-api"; -import { Anonymity, getRedactedCurrentLocation, type IPosthogEvent, PosthogAnalytics } from "../../src/PosthogAnalytics"; +import { + Anonymity, + getRedactedCurrentLocation, + type IPosthogEvent, + PosthogAnalytics, +} from "../../src/PosthogAnalytics"; import SdkConfig from "../../src/SdkConfig"; import { getMockClientWithEventEmitter } from "../test-utils"; import SettingsStore from "../../src/settings/SettingsStore"; diff --git a/test/unit-tests/RoomNotifs-test.ts b/test/unit-tests/RoomNotifs-test.ts index 922c52b8227..cff4ecef75e 100644 --- a/test/unit-tests/RoomNotifs-test.ts +++ b/test/unit-tests/RoomNotifs-test.ts @@ -16,7 +16,8 @@ import { EventType, type MatrixEvent, PendingEventOrdering, - type MatrixClient } from "matrix-js-sdk/src/matrix"; + type MatrixClient, +} from "matrix-js-sdk/src/matrix"; import { KnownMembership } from "matrix-js-sdk/src/types"; import { mkEvent, mkRoom, mkRoomMember, muteRoom, stubClient, upsertRoomStateEvents } from "../test-utils"; diff --git a/test/unit-tests/components/structures/LoggedInView-test.tsx b/test/unit-tests/components/structures/LoggedInView-test.tsx index e9285cc9d9c..cddbf312f61 100644 --- a/test/unit-tests/components/structures/LoggedInView-test.tsx +++ b/test/unit-tests/components/structures/LoggedInView-test.tsx @@ -8,7 +8,14 @@ Please see LICENSE files in the repository root for full details. import React from "react"; import { render, type RenderResult } from "jest-matrix-react"; -import { ConditionKind, EventType, type IPushRule, MatrixEvent, ClientEvent, PushRuleKind } from "matrix-js-sdk/src/matrix"; +import { + ConditionKind, + EventType, + type IPushRule, + MatrixEvent, + ClientEvent, + PushRuleKind, +} from "matrix-js-sdk/src/matrix"; import { MediaHandler } from "matrix-js-sdk/src/webrtc/mediaHandler"; import { logger } from "matrix-js-sdk/src/logger"; import userEvent from "@testing-library/user-event"; diff --git a/test/unit-tests/components/structures/PipContainer-test.tsx b/test/unit-tests/components/structures/PipContainer-test.tsx index 876d002877a..74b65774447 100644 --- a/test/unit-tests/components/structures/PipContainer-test.tsx +++ b/test/unit-tests/components/structures/PipContainer-test.tsx @@ -10,7 +10,13 @@ import React from "react"; import { mocked, type Mocked } from "jest-mock"; import { screen, render, act, cleanup } from "jest-matrix-react"; import userEvent from "@testing-library/user-event"; -import { type MatrixClient, PendingEventOrdering, Room, RoomStateEvent , type RoomMember } from "matrix-js-sdk/src/matrix"; +import { + type MatrixClient, + PendingEventOrdering, + Room, + RoomStateEvent, + type RoomMember, +} from "matrix-js-sdk/src/matrix"; import { Widget, type ClientWidgetApi } from "matrix-widget-api"; import { type UserEvent } from "@testing-library/user-event/dist/types/setup/setup"; diff --git a/test/unit-tests/components/views/beacon/BeaconViewDialog-test.tsx b/test/unit-tests/components/views/beacon/BeaconViewDialog-test.tsx index f7465ba5bee..5895929640a 100644 --- a/test/unit-tests/components/views/beacon/BeaconViewDialog-test.tsx +++ b/test/unit-tests/components/views/beacon/BeaconViewDialog-test.tsx @@ -8,7 +8,13 @@ Please see LICENSE files in the repository root for full details. import React from "react"; import { act, fireEvent, render, type RenderResult, waitFor } from "jest-matrix-react"; -import { type MatrixClient, type MatrixEvent, type Room, RoomMember, getBeaconInfoIdentifier } from "matrix-js-sdk/src/matrix"; +import { + type MatrixClient, + type MatrixEvent, + type Room, + RoomMember, + getBeaconInfoIdentifier, +} from "matrix-js-sdk/src/matrix"; import * as maplibregl from "maplibre-gl"; import { mocked } from "jest-mock"; diff --git a/test/unit-tests/components/views/beacon/RoomCallBanner-test.tsx b/test/unit-tests/components/views/beacon/RoomCallBanner-test.tsx index 0f56d74e2fb..38cb77eb03f 100644 --- a/test/unit-tests/components/views/beacon/RoomCallBanner-test.tsx +++ b/test/unit-tests/components/views/beacon/RoomCallBanner-test.tsx @@ -7,7 +7,13 @@ Please see LICENSE files in the repository root for full details. */ import React from "react"; -import { Room, PendingEventOrdering, type MatrixClient, type RoomMember, RoomStateEvent } from "matrix-js-sdk/src/matrix"; +import { + Room, + PendingEventOrdering, + type MatrixClient, + type RoomMember, + RoomStateEvent, +} from "matrix-js-sdk/src/matrix"; import { type ClientWidgetApi, Widget } from "matrix-widget-api"; import { act, cleanup, render, screen } from "jest-matrix-react"; import { mocked, type Mocked } from "jest-mock"; diff --git a/test/unit-tests/components/views/messages/CallEvent-test.tsx b/test/unit-tests/components/views/messages/CallEvent-test.tsx index 0cfabbb620e..cc8e5a0a8ee 100644 --- a/test/unit-tests/components/views/messages/CallEvent-test.tsx +++ b/test/unit-tests/components/views/messages/CallEvent-test.tsx @@ -9,7 +9,13 @@ Please see LICENSE files in the repository root for full details. import React from "react"; import { render, screen, act, cleanup, fireEvent, waitFor } from "jest-matrix-react"; import { mocked, type Mocked } from "jest-mock"; -import { Room, RoomStateEvent, type MatrixClient, PendingEventOrdering , type RoomMember } from "matrix-js-sdk/src/matrix"; +import { + Room, + RoomStateEvent, + type MatrixClient, + PendingEventOrdering, + type RoomMember, +} from "matrix-js-sdk/src/matrix"; import { type ClientWidgetApi, Widget } from "matrix-widget-api"; import { diff --git a/test/unit-tests/components/views/right_panel/UserInfo-test.tsx b/test/unit-tests/components/views/right_panel/UserInfo-test.tsx index 3d55ddb18e9..de0c0c39a64 100644 --- a/test/unit-tests/components/views/right_panel/UserInfo-test.tsx +++ b/test/unit-tests/components/views/right_panel/UserInfo-test.tsx @@ -10,7 +10,15 @@ import React from "react"; import { fireEvent, render, screen, cleanup, act, within, waitForElementToBeRemoved } from "jest-matrix-react"; import userEvent from "@testing-library/user-event"; import { type Mocked, mocked } from "jest-mock"; -import { type Room, User, type MatrixClient, RoomMember, MatrixEvent, EventType, Device } from "matrix-js-sdk/src/matrix"; +import { + type Room, + User, + type MatrixClient, + RoomMember, + MatrixEvent, + EventType, + Device, +} from "matrix-js-sdk/src/matrix"; import { KnownMembership } from "matrix-js-sdk/src/types"; import { defer } from "matrix-js-sdk/src/utils"; import { EventEmitter } from "events"; diff --git a/test/unit-tests/components/views/rooms/ReadReceiptMarker-test.tsx b/test/unit-tests/components/views/rooms/ReadReceiptMarker-test.tsx index f1dfa49acd4..a55636d5813 100644 --- a/test/unit-tests/components/views/rooms/ReadReceiptMarker-test.tsx +++ b/test/unit-tests/components/views/rooms/ReadReceiptMarker-test.tsx @@ -9,7 +9,9 @@ Please see LICENSE files in the repository root for full details. import React from "react"; import { render, screen } from "jest-matrix-react"; -import ReadReceiptMarker, { type IReadReceiptPosition } from "../../../../../src/components/views/rooms/ReadReceiptMarker"; +import ReadReceiptMarker, { + type IReadReceiptPosition, +} from "../../../../../src/components/views/rooms/ReadReceiptMarker"; describe("ReadReceiptMarker", () => { afterEach(() => { diff --git a/test/unit-tests/components/views/rooms/RoomTile-test.tsx b/test/unit-tests/components/views/rooms/RoomTile-test.tsx index a6e439d73d6..4b785d2c247 100644 --- a/test/unit-tests/components/views/rooms/RoomTile-test.tsx +++ b/test/unit-tests/components/views/rooms/RoomTile-test.tsx @@ -9,7 +9,14 @@ Please see LICENSE files in the repository root for full details. import React from "react"; import { render, screen, act, type RenderResult } from "jest-matrix-react"; import { mocked, type Mocked } from "jest-mock"; -import { type MatrixClient, PendingEventOrdering, Room, RoomStateEvent, type Thread , type RoomMember } from "matrix-js-sdk/src/matrix"; +import { + type MatrixClient, + PendingEventOrdering, + Room, + RoomStateEvent, + type Thread, + type RoomMember, +} from "matrix-js-sdk/src/matrix"; import { KnownMembership } from "matrix-js-sdk/src/types"; import { Widget } from "matrix-widget-api"; diff --git a/test/unit-tests/components/views/rooms/memberlist/common.tsx b/test/unit-tests/components/views/rooms/memberlist/common.tsx index 1b893c059c8..786c9c875eb 100644 --- a/test/unit-tests/components/views/rooms/memberlist/common.tsx +++ b/test/unit-tests/components/views/rooms/memberlist/common.tsx @@ -9,7 +9,15 @@ Please see LICENSE files in the repository root for full details. import React, { act } from "react"; import { render, type RenderResult, waitFor } from "jest-matrix-react"; -import { Room, type MatrixClient, type RoomState, RoomMember, User, EventType, RoomStateEvent } from "matrix-js-sdk/src/matrix"; +import { + Room, + type MatrixClient, + type RoomState, + RoomMember, + User, + EventType, + RoomStateEvent, +} from "matrix-js-sdk/src/matrix"; import { KnownMembership } from "matrix-js-sdk/src/types"; import { MatrixClientPeg } from "../../../../../../src/MatrixClientPeg"; diff --git a/test/unit-tests/components/views/rooms/wysiwyg_composer/EditWysiwygComposer-test.tsx b/test/unit-tests/components/views/rooms/wysiwyg_composer/EditWysiwygComposer-test.tsx index fa56419a5bc..14905f05ccf 100644 --- a/test/unit-tests/components/views/rooms/wysiwyg_composer/EditWysiwygComposer-test.tsx +++ b/test/unit-tests/components/views/rooms/wysiwyg_composer/EditWysiwygComposer-test.tsx @@ -19,7 +19,10 @@ import { EditWysiwygComposer } from "../../../../../../src/components/views/room import EditorStateTransfer from "../../../../../../src/utils/EditorStateTransfer"; import { Emoji } from "../../../../../../src/components/views/rooms/wysiwyg_composer/components/Emoji"; import { ChevronFace } from "../../../../../../src/components/structures/ContextMenu"; -import { type ComposerInsertPayload, ComposerType } from "../../../../../../src/dispatcher/payloads/ComposerInsertPayload"; +import { + type ComposerInsertPayload, + ComposerType, +} from "../../../../../../src/dispatcher/payloads/ComposerInsertPayload"; import { type ActionPayload } from "../../../../../../src/dispatcher/payloads"; import * as EmojiButton from "../../../../../../src/components/views/rooms/EmojiButton"; import { createMocks } from "./utils"; diff --git a/test/unit-tests/components/views/rooms/wysiwyg_composer/SendWysiwygComposer-test.tsx b/test/unit-tests/components/views/rooms/wysiwyg_composer/SendWysiwygComposer-test.tsx index cfc66d66e2e..d8215a101eb 100644 --- a/test/unit-tests/components/views/rooms/wysiwyg_composer/SendWysiwygComposer-test.tsx +++ b/test/unit-tests/components/views/rooms/wysiwyg_composer/SendWysiwygComposer-test.tsx @@ -17,7 +17,10 @@ import { Action } from "../../../../../../src/dispatcher/actions"; import { flushPromises } from "../../../../../test-utils"; import { SendWysiwygComposer } from "../../../../../../src/components/views/rooms/wysiwyg_composer/"; import { aboveLeftOf } from "../../../../../../src/components/structures/ContextMenu"; -import { type ComposerInsertPayload, ComposerType } from "../../../../../../src/dispatcher/payloads/ComposerInsertPayload"; +import { + type ComposerInsertPayload, + ComposerType, +} from "../../../../../../src/dispatcher/payloads/ComposerInsertPayload"; import { setSelection } from "../../../../../../src/components/views/rooms/wysiwyg_composer/utils/selection"; import { createMocks } from "./utils"; import { ScopedRoomContextProvider } from "../../../../../../src/contexts/ScopedRoomContext.tsx"; diff --git a/test/unit-tests/components/views/rooms/wysiwyg_composer/components/FormattingButtons-test.tsx b/test/unit-tests/components/views/rooms/wysiwyg_composer/components/FormattingButtons-test.tsx index 7cfd848e310..94d207eb91f 100644 --- a/test/unit-tests/components/views/rooms/wysiwyg_composer/components/FormattingButtons-test.tsx +++ b/test/unit-tests/components/views/rooms/wysiwyg_composer/components/FormattingButtons-test.tsx @@ -9,7 +9,12 @@ Please see LICENSE files in the repository root for full details. import React from "react"; import { cleanup, render, screen, waitFor } from "jest-matrix-react"; import userEvent from "@testing-library/user-event"; -import { type ActionState, type ActionTypes, type AllActionStates, type FormattingFunctions } from "@vector-im/matrix-wysiwyg"; +import { + type ActionState, + type ActionTypes, + type AllActionStates, + type FormattingFunctions, +} from "@vector-im/matrix-wysiwyg"; import { FormattingButtons } from "../../../../../../../src/components/views/rooms/wysiwyg_composer/components/FormattingButtons"; import * as LinkModal from "../../../../../../../src/components/views/rooms/wysiwyg_composer/components/LinkModal"; diff --git a/test/unit-tests/components/views/settings/JoinRuleSettings-test.tsx b/test/unit-tests/components/views/settings/JoinRuleSettings-test.tsx index e6fa8c386ad..7fd34159a01 100644 --- a/test/unit-tests/components/views/settings/JoinRuleSettings-test.tsx +++ b/test/unit-tests/components/views/settings/JoinRuleSettings-test.tsx @@ -30,7 +30,9 @@ import { mockClientMethodsUser, } from "../../../../test-utils"; import { filterBoolean } from "../../../../../src/utils/arrays"; -import JoinRuleSettings, { type JoinRuleSettingsProps } from "../../../../../src/components/views/settings/JoinRuleSettings"; +import JoinRuleSettings, { + type JoinRuleSettingsProps, +} from "../../../../../src/components/views/settings/JoinRuleSettings"; import { PreferredRoomVersions } from "../../../../../src/utils/PreferredRoomVersions"; import SpaceStore from "../../../../../src/stores/spaces/SpaceStore"; import SettingsStore from "../../../../../src/settings/SettingsStore"; diff --git a/test/unit-tests/components/views/settings/tabs/room/RolesRoomSettingsTab-test.tsx b/test/unit-tests/components/views/settings/tabs/room/RolesRoomSettingsTab-test.tsx index 0dda0b121cd..9dc5860119c 100644 --- a/test/unit-tests/components/views/settings/tabs/room/RolesRoomSettingsTab-test.tsx +++ b/test/unit-tests/components/views/settings/tabs/room/RolesRoomSettingsTab-test.tsx @@ -8,7 +8,14 @@ Please see LICENSE files in the repository root for full details. import React from "react"; import { fireEvent, getByRole, render, type RenderResult, screen, waitFor } from "jest-matrix-react"; -import { type MatrixClient, EventType, MatrixEvent, Room, RoomMember, type ISendEventResponse } from "matrix-js-sdk/src/matrix"; +import { + type MatrixClient, + EventType, + MatrixEvent, + Room, + RoomMember, + type ISendEventResponse, +} from "matrix-js-sdk/src/matrix"; import { KnownMembership } from "matrix-js-sdk/src/types"; import { mocked } from "jest-mock"; import { defer } from "matrix-js-sdk/src/utils"; diff --git a/test/unit-tests/components/views/settings/tabs/user/VoiceUserSettingsTab-test.tsx b/test/unit-tests/components/views/settings/tabs/user/VoiceUserSettingsTab-test.tsx index 8672c5ef3cf..d4519d429a8 100644 --- a/test/unit-tests/components/views/settings/tabs/user/VoiceUserSettingsTab-test.tsx +++ b/test/unit-tests/components/views/settings/tabs/user/VoiceUserSettingsTab-test.tsx @@ -12,7 +12,10 @@ import { fireEvent, render, screen } from "jest-matrix-react"; import { logger } from "matrix-js-sdk/src/logger"; import VoiceUserSettingsTab from "../../../../../../../src/components/views/settings/tabs/user/VoiceUserSettingsTab"; -import MediaDeviceHandler, { type IMediaDevices, MediaDeviceKindEnum } from "../../../../../../../src/MediaDeviceHandler"; +import MediaDeviceHandler, { + type IMediaDevices, + MediaDeviceKindEnum, +} from "../../../../../../../src/MediaDeviceHandler"; import { flushPromises } from "../../../../../../test-utils"; jest.mock("../../../../../../../src/MediaDeviceHandler"); diff --git a/test/unit-tests/components/views/spaces/SpaceSettingsVisibilityTab-test.tsx b/test/unit-tests/components/views/spaces/SpaceSettingsVisibilityTab-test.tsx index 2229778dde5..a8b4dd895c4 100644 --- a/test/unit-tests/components/views/spaces/SpaceSettingsVisibilityTab-test.tsx +++ b/test/unit-tests/components/views/spaces/SpaceSettingsVisibilityTab-test.tsx @@ -10,7 +10,14 @@ import React from "react"; import { mocked } from "jest-mock"; import { secureRandomString } from "matrix-js-sdk/src/randomstring"; import { act, fireEvent, render, type RenderResult } from "jest-matrix-react"; -import { EventType, type MatrixClient, type Room, GuestAccess, HistoryVisibility, JoinRule } from "matrix-js-sdk/src/matrix"; +import { + EventType, + type MatrixClient, + type Room, + GuestAccess, + HistoryVisibility, + JoinRule, +} from "matrix-js-sdk/src/matrix"; import _SpaceSettingsVisibilityTab from "../../../../../src/components/views/spaces/SpaceSettingsVisibilityTab"; import { diff --git a/test/unit-tests/components/views/voip/CallView-test.tsx b/test/unit-tests/components/views/voip/CallView-test.tsx index 1fc3e3e2f51..52998074847 100644 --- a/test/unit-tests/components/views/voip/CallView-test.tsx +++ b/test/unit-tests/components/views/voip/CallView-test.tsx @@ -10,7 +10,13 @@ import React from "react"; import { zip } from "lodash"; import { render, screen, act, fireEvent, waitFor, cleanup } from "jest-matrix-react"; import { mocked, type Mocked } from "jest-mock"; -import { type MatrixClient, PendingEventOrdering, Room, RoomStateEvent , type RoomMember } from "matrix-js-sdk/src/matrix"; +import { + type MatrixClient, + PendingEventOrdering, + Room, + RoomStateEvent, + type RoomMember, +} from "matrix-js-sdk/src/matrix"; import { Widget } from "matrix-widget-api"; import type { ClientWidgetApi } from "matrix-widget-api"; diff --git a/test/unit-tests/editor/mock.ts b/test/unit-tests/editor/mock.ts index 33f62e7699f..e7bbe1c8ba6 100644 --- a/test/unit-tests/editor/mock.ts +++ b/test/unit-tests/editor/mock.ts @@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details. import { type Room, type MatrixClient, type RoomMember } from "matrix-js-sdk/src/matrix"; -import {type UpdateCallback} from "../../../src/editor/autocomplete"; +import { type UpdateCallback } from "../../../src/editor/autocomplete"; import type AutocompleteWrapperModel from "../../../src/editor/autocomplete"; import { type Caret } from "../../../src/editor/caret"; import { type PillPart, type Part, PartCreator } from "../../../src/editor/parts"; diff --git a/test/unit-tests/events/RelationsHelper-test.ts b/test/unit-tests/events/RelationsHelper-test.ts index 7730f5ead78..c8992fc9227 100644 --- a/test/unit-tests/events/RelationsHelper-test.ts +++ b/test/unit-tests/events/RelationsHelper-test.ts @@ -7,7 +7,14 @@ Please see LICENSE files in the repository root for full details. */ import { mocked } from "jest-mock"; -import { EventType, type MatrixClient, type MatrixEvent, MatrixEventEvent, RelationType, Room } from "matrix-js-sdk/src/matrix"; +import { + EventType, + type MatrixClient, + type MatrixEvent, + MatrixEventEvent, + RelationType, + Room, +} from "matrix-js-sdk/src/matrix"; import { RelationsHelper, RelationsHelperEvent } from "../../../src/events/RelationsHelper"; import { mkEvent, stubClient } from "../../test-utils"; diff --git a/test/unit-tests/models/Call-test.ts b/test/unit-tests/models/Call-test.ts index 06b0108aad4..a41629810c3 100644 --- a/test/unit-tests/models/Call-test.ts +++ b/test/unit-tests/models/Call-test.ts @@ -17,7 +17,10 @@ import { RoomStateEvent, PendingEventOrdering, type IContent, - type MatrixClient, type IMyDevice, type RoomMember } from "matrix-js-sdk/src/matrix"; + type MatrixClient, + type IMyDevice, + type RoomMember, +} from "matrix-js-sdk/src/matrix"; import { KnownMembership } from "matrix-js-sdk/src/types"; import { Widget } from "matrix-widget-api"; import { diff --git a/test/unit-tests/modules/ModuleRunner-test.ts b/test/unit-tests/modules/ModuleRunner-test.ts index 44a29e4038f..bc581105b57 100644 --- a/test/unit-tests/modules/ModuleRunner-test.ts +++ b/test/unit-tests/modules/ModuleRunner-test.ts @@ -6,7 +6,10 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { type RoomPreviewOpts, RoomViewLifecycle } from "@matrix-org/react-sdk-module-api/lib/lifecycles/RoomViewLifecycle"; +import { + type RoomPreviewOpts, + RoomViewLifecycle, +} from "@matrix-org/react-sdk-module-api/lib/lifecycles/RoomViewLifecycle"; import { type MockModule, diff --git a/test/unit-tests/stores/RoomViewStore-test.ts b/test/unit-tests/stores/RoomViewStore-test.ts index c67bf15dba3..74aa952036b 100644 --- a/test/unit-tests/stores/RoomViewStore-test.ts +++ b/test/unit-tests/stores/RoomViewStore-test.ts @@ -9,7 +9,10 @@ Please see LICENSE files in the repository root for full details. import { mocked } from "jest-mock"; import { MatrixError, Room } from "matrix-js-sdk/src/matrix"; import { sleep } from "matrix-js-sdk/src/utils"; -import { RoomViewLifecycle, type ViewRoomOpts } from "@matrix-org/react-sdk-module-api/lib/lifecycles/RoomViewLifecycle"; +import { + RoomViewLifecycle, + type ViewRoomOpts, +} from "@matrix-org/react-sdk-module-api/lib/lifecycles/RoomViewLifecycle"; import { RoomViewStore } from "../../../src/stores/RoomViewStore"; import { Action } from "../../../src/dispatcher/actions"; diff --git a/test/unit-tests/toasts/IncomingCallToast-test.tsx b/test/unit-tests/toasts/IncomingCallToast-test.tsx index 1b2b00da9ca..f73a24dc449 100644 --- a/test/unit-tests/toasts/IncomingCallToast-test.tsx +++ b/test/unit-tests/toasts/IncomingCallToast-test.tsx @@ -9,7 +9,14 @@ Please see LICENSE files in the repository root for full details. import React from "react"; import { render, screen, cleanup, fireEvent, waitFor } from "jest-matrix-react"; import { mocked, type Mocked } from "jest-mock"; -import { Room, RoomStateEvent, type MatrixEvent, MatrixEventEvent, type MatrixClient , type RoomMember } from "matrix-js-sdk/src/matrix"; +import { + Room, + RoomStateEvent, + type MatrixEvent, + MatrixEventEvent, + type MatrixClient, + type RoomMember, +} from "matrix-js-sdk/src/matrix"; import { type ClientWidgetApi, Widget } from "matrix-widget-api"; import { type ICallNotifyContent } from "matrix-js-sdk/src/matrixrtc"; diff --git a/test/unit-tests/utils/DMRoomMap-test.ts b/test/unit-tests/utils/DMRoomMap-test.ts index 44bbe5c9bc1..69360a277dc 100644 --- a/test/unit-tests/utils/DMRoomMap-test.ts +++ b/test/unit-tests/utils/DMRoomMap-test.ts @@ -8,7 +8,14 @@ Please see LICENSE files in the repository root for full details. import { mocked, type Mocked } from "jest-mock"; import { logger } from "matrix-js-sdk/src/logger"; -import { ClientEvent, EventType, type IContent, type MatrixClient, type MatrixEvent, type Room } from "matrix-js-sdk/src/matrix"; +import { + ClientEvent, + EventType, + type IContent, + type MatrixClient, + type MatrixEvent, + type Room, +} from "matrix-js-sdk/src/matrix"; import DMRoomMap from "../../../src/utils/DMRoomMap"; import { mkEvent, stubClient } from "../../test-utils"; diff --git a/test/unit-tests/utils/device/parseUserAgent-test.ts b/test/unit-tests/utils/device/parseUserAgent-test.ts index a8179237715..7ed2af46821 100644 --- a/test/unit-tests/utils/device/parseUserAgent-test.ts +++ b/test/unit-tests/utils/device/parseUserAgent-test.ts @@ -6,7 +6,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { DeviceType, type ExtendedDeviceInformation, parseUserAgent } from "../../../../src/utils/device/parseUserAgent"; +import { + DeviceType, + type ExtendedDeviceInformation, + parseUserAgent, +} from "../../../../src/utils/device/parseUserAgent"; const makeDeviceExtendedInfo = ( deviceType: DeviceType, diff --git a/test/unit-tests/utils/membership-test.ts b/test/unit-tests/utils/membership-test.ts index 99ffa030160..e0ade641860 100644 --- a/test/unit-tests/utils/membership-test.ts +++ b/test/unit-tests/utils/membership-test.ts @@ -6,7 +6,14 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { type MatrixClient, type MatrixEvent, Room, type RoomMember, type RoomState, RoomStateEvent } from "matrix-js-sdk/src/matrix"; +import { + type MatrixClient, + type MatrixEvent, + Room, + type RoomMember, + type RoomState, + RoomStateEvent, +} from "matrix-js-sdk/src/matrix"; import { KnownMembership } from "matrix-js-sdk/src/types"; import { mocked } from "jest-mock";