Use oxlint to apply jsx/tsx extension consistently (#34303)
* Remove stale max-len disablements * Remove stale camelCase & naming-convention disablements * Remove stale ban-ts-comment disablements * Remove stale no-var disablements * Remove stale no-empty-property disablements * Remove stale react rule disablements * Remove stale no-constant-condition disablements * Remove stale no-unused-vars disablements * Remove stale disablements for disabled rules * fixup camelcase * Remove dead code * Tidy code * Tweak oxlint config * Use oxlint to apply jsx/tsx extension consistently * Fix import * Fix imports * Rename affected snapshots * Update more imports
This commit is contained in:
@@ -13,7 +13,7 @@ import { type ValidatedServerConfig } from "../../../utils/ValidatedServerConfig
|
||||
import LoginWithQR, { type QrLoginCredentials } from "../../../components/views/auth/LoginWithQR.tsx";
|
||||
import { Mode, Phase } from "../../../components/views/auth/LoginWithQR-types.ts";
|
||||
import BaseDialog from "../../../components/views/dialogs/BaseDialog.tsx";
|
||||
import { _t } from "../../../languageHandler.tsx";
|
||||
import { _t } from "../../../languageHandler";
|
||||
|
||||
interface Props {
|
||||
/**
|
||||
|
||||
@@ -11,7 +11,7 @@ import { MatrixEvent, type IContent, RoomStickyEventsEvent } from "matrix-js-sdk
|
||||
import { Alert, Form, SettingsToggleInput } from "@vector-im/compound-web";
|
||||
|
||||
import BaseTool, { DevtoolsContext, type IDevtoolsProps } from "./BaseTool.tsx";
|
||||
import { _t, _td, UserFriendlyError } from "../../../../languageHandler.tsx";
|
||||
import { _t, _td, UserFriendlyError } from "../../../../languageHandler";
|
||||
import {
|
||||
EventEditor,
|
||||
eventTypeField,
|
||||
|
||||
@@ -13,7 +13,7 @@ import type { ButtonEvent } from "../../elements/AccessibleButton.tsx";
|
||||
import BaseAvatar from "../../avatars/BaseAvatar.tsx";
|
||||
import { mediaFromMxc } from "../../../../customisations/Media.ts";
|
||||
import UserIdentifierCustomisations from "../../../../customisations/UserIdentifier.ts";
|
||||
import { _t } from "../../../../languageHandler.tsx";
|
||||
import { _t } from "../../../../languageHandler";
|
||||
import { Icon as EmailPillAvatarIcon } from "../../../../../res/img/icon-email-pill-avatar.svg";
|
||||
|
||||
interface IDMRoomTileProps {
|
||||
|
||||
@@ -14,7 +14,7 @@ import { type Member } from "../../../../utils/direct-messages.ts";
|
||||
import BaseDialog from "../BaseDialog.tsx";
|
||||
import { type ScreenName } from "../../../../PosthogTrackers.ts";
|
||||
import { DMRoomTile } from "./DMRoomTile.tsx";
|
||||
import { _t } from "../../../../languageHandler.tsx";
|
||||
import { _t } from "../../../../languageHandler";
|
||||
|
||||
interface Props {
|
||||
/** Callback that will be called when the 'Continue' or 'Invite' button is clicked. */
|
||||
|
||||
@@ -42,13 +42,13 @@ import { JoinRule, type Room } from "matrix-js-sdk/src/matrix";
|
||||
import { Box, Flex, HistoryVisibilityBadge, LinkedText, StatusTextView } from "@element-hq/web-shared-components";
|
||||
|
||||
import BaseCard from "./BaseCard.tsx";
|
||||
import { _t } from "../../../languageHandler.tsx";
|
||||
import { _t } from "../../../languageHandler";
|
||||
import RoomAvatar from "../avatars/RoomAvatar.tsx";
|
||||
import { E2EStatus } from "../../../utils/ShieldUtils.ts";
|
||||
import { type RoomPermalinkCreator } from "../../../utils/permalinks/Permalinks.ts";
|
||||
import { topicToHtml } from "../../../HtmlUtils.tsx";
|
||||
import { useRoomSummaryCardViewModel } from "../../viewmodels/right_panel/RoomSummaryCardViewModel.tsx";
|
||||
import { useRoomTopicViewModel } from "../../viewmodels/right_panel/RoomSummaryCardTopicViewModel.tsx";
|
||||
import { useRoomSummaryCardViewModel } from "../../viewmodels/right_panel/RoomSummaryCardViewModel";
|
||||
import { useRoomTopicViewModel } from "../../viewmodels/right_panel/RoomSummaryCardTopicViewModel";
|
||||
import { useRoomName } from "../../../hooks/useRoomName.ts";
|
||||
|
||||
interface IProps {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import AccessibleButton, { type ButtonEvent } from "../../elements/AccessibleBut
|
||||
import { NotificationLevel } from "../../../../stores/notifications/NotificationLevel";
|
||||
import { useSettingValue } from "../../../../hooks/useSettings";
|
||||
import { type XOR } from "../../../../@types/common";
|
||||
import { _t } from "../../../../languageHandler.tsx";
|
||||
import { _t } from "../../../../languageHandler";
|
||||
|
||||
interface Props {
|
||||
symbol: string | null;
|
||||
|
||||
@@ -27,8 +27,8 @@ import { HistoryIcon, UserProfileSolidIcon } from "@vector-im/compound-design-to
|
||||
import { useRoomName } from "../../../../hooks/useRoomName.ts";
|
||||
import { RightPanelPhases } from "../../../../stores/right-panel/RightPanelStorePhases.ts";
|
||||
import { useRoomMemberCount, useRoomMembers } from "../../../../hooks/useRoomMembers.ts";
|
||||
import { _t } from "../../../../languageHandler.tsx";
|
||||
import { getPlatformCallTypeProps, useRoomCall } from "../../../../hooks/room/useRoomCall.tsx";
|
||||
import { _t } from "../../../../languageHandler";
|
||||
import { getPlatformCallTypeProps, useRoomCall } from "../../../../hooks/room/useRoomCall";
|
||||
import { useRoomThreadNotifications } from "../../../../hooks/room/useRoomThreadNotifications.ts";
|
||||
import { useGlobalNotificationState } from "../../../../hooks/useGlobalNotificationState.ts";
|
||||
import { useFeatureEnabled } from "../../../../hooks/useSettings.ts";
|
||||
|
||||
@@ -15,7 +15,7 @@ import MemberAvatar from "../avatars/MemberAvatar";
|
||||
import {
|
||||
useUserIdentityWarningViewModel,
|
||||
type ViolationPrompt,
|
||||
} from "../../viewmodels/rooms/UserIdentityWarningViewModel.tsx";
|
||||
} from "../../viewmodels/rooms/UserIdentityWarningViewModel";
|
||||
import { type ButtonEvent } from "../elements/AccessibleButton.tsx";
|
||||
|
||||
interface UserIdentityWarningProps {
|
||||
|
||||
@@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
|
||||
|
||||
import React from "react";
|
||||
|
||||
import { type RendererMap } from "./utils.tsx";
|
||||
import { type RendererMap } from "./utils.ts";
|
||||
import CodeBlock from "../components/views/messages/CodeBlock.tsx";
|
||||
|
||||
/**
|
||||
|
||||
@@ -10,7 +10,7 @@ import React from "react";
|
||||
import { domToReact } from "html-react-parser";
|
||||
|
||||
import LinkWithTooltip from "../components/views/elements/LinkWithTooltip";
|
||||
import { getSingleTextContentNode, type RendererMap } from "./utils.tsx";
|
||||
import { getSingleTextContentNode, type RendererMap } from "./utils.ts";
|
||||
|
||||
/**
|
||||
* Wraps ambiguous links in a tooltip trigger that shows the full URL.
|
||||
|
||||
@@ -17,7 +17,7 @@ import { Pill } from "../components/views/elements/Pill";
|
||||
import { PillType } from "../components/views/elements/PillType";
|
||||
import { parsePermalink } from "../utils/permalinks/Permalinks";
|
||||
import { type PermalinkParts } from "../utils/permalinks/PermalinkConstructor";
|
||||
import { hasParentMatching, type RendererMap, type ParentNode } from "./utils.tsx";
|
||||
import { hasParentMatching, type RendererMap, type ParentNode } from "./utils.ts";
|
||||
|
||||
const AT_ROOM_REGEX = PushProcessor.getPushRuleGlobRegex("@room", true, "gmi");
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details.
|
||||
import React from "react";
|
||||
import { domToReact, type DOMNode } from "html-react-parser";
|
||||
|
||||
import { type RendererMap } from "./utils.tsx";
|
||||
import { type RendererMap } from "./utils.ts";
|
||||
import Spoiler from "../components/views/elements/Spoiler.tsx";
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details.
|
||||
import { EventType } from "matrix-js-sdk/src/matrix";
|
||||
|
||||
import { type SettingLevel } from "../SettingLevel.ts";
|
||||
import { _td } from "../../languageHandler.tsx";
|
||||
import { _td } from "../../languageHandler";
|
||||
import ServerSupportUnstableFeatureController from "./ServerSupportUnstableFeatureController.ts";
|
||||
import { type SettingKey } from "../Settings.tsx";
|
||||
import type { WatchManager } from "../WatchManager.ts";
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
INVITE_RULES_ACCOUNT_DATA_TYPE,
|
||||
type InviteConfigAccountData,
|
||||
} from "../../@types/invite-rules.ts";
|
||||
import { _t } from "../../languageHandler.tsx";
|
||||
import { _t } from "../../languageHandler";
|
||||
|
||||
/**
|
||||
* Handles invite filtering rules provided by MSC4155.
|
||||
|
||||
@@ -11,7 +11,7 @@ import { type SettingLevel } from "../SettingLevel";
|
||||
import MatrixClientBackedController from "./MatrixClientBackedController";
|
||||
import { type WatchManager } from "../WatchManager";
|
||||
import { type SettingKey } from "../Settings.tsx";
|
||||
import { _t } from "../../languageHandler.tsx";
|
||||
import { _t } from "../../languageHandler";
|
||||
import PlatformPeg from "../../PlatformPeg.ts";
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
type ThreadMessagePreviewViewModelProps,
|
||||
ThreadSummaryViewModel,
|
||||
type ThreadSummaryViewModelProps,
|
||||
} from "./ThreadSummaryViewModel.tsx";
|
||||
} from "./ThreadSummaryViewModel";
|
||||
import {
|
||||
E2eMessageSharedIconViewModel,
|
||||
type E2eMessageSharedIconViewModelProps,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user