Skip to content

Commit 2a5bd98

Browse files
ref(js): Fix a few biome warnings (#72048)
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent 0abe65b commit 2a5bd98

File tree

10 files changed

+23
-10
lines changed

10 files changed

+23
-10
lines changed

static/app/components/assigneeSelectorDropdown.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ import MemberListStore from 'sentry/stores/memberListStore';
2424
import ProjectsStore from 'sentry/stores/projectsStore';
2525
import {useLegacyStore} from 'sentry/stores/useLegacyStore';
2626
import {space} from 'sentry/styles/space';
27-
import type {Actor, Group, SuggestedOwnerReason, Team, User} from 'sentry/types';
27+
import type {Actor} from 'sentry/types/core';
28+
import type {Group, SuggestedOwnerReason} from 'sentry/types/group';
29+
import type {Team} from 'sentry/types/organization';
30+
import type {User} from 'sentry/types/user';
2831
import {buildTeamId} from 'sentry/utils';
2932

3033
const suggestedReasonTable: Record<SuggestedOwnerReason, string> = {

static/app/components/group/externalIssuesList/useExternalIssueData.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import useIssueTrackingFilter from 'sentry/components/group/externalIssuesList/u
55
import ExternalIssueStore from 'sentry/stores/externalIssueStore';
66
import SentryAppInstallationStore from 'sentry/stores/sentryAppInstallationsStore';
77
import {useLegacyStore} from 'sentry/stores/useLegacyStore';
8-
import type {Group, GroupIntegration, Project} from 'sentry/types';
98
import type {Event} from 'sentry/types/event';
9+
import type {Group} from 'sentry/types/group';
10+
import type {GroupIntegration} from 'sentry/types/integrations';
11+
import type {Project} from 'sentry/types/project';
1012
import useOrganization from 'sentry/utils/useOrganization';
1113
import useSentryAppComponentsStore from 'sentry/utils/useSentryAppComponentsStore';
1214

static/app/components/group/externalIssuesList/useFetchSentryAppData.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import {useEffect} from 'react';
22

33
import ExternalIssueStore from 'sentry/stores/externalIssueStore';
4-
import type {Group, OrganizationSummary, PlatformExternalIssue} from 'sentry/types';
4+
import type {Group} from 'sentry/types/group';
5+
import type {PlatformExternalIssue} from 'sentry/types/integrations';
6+
import type {OrganizationSummary} from 'sentry/types/organization';
57
import {useApiQuery} from 'sentry/utils/queryClient';
68

79
// We want to do this explicitly so that we can handle errors gracefully,

static/app/components/group/sentryAppExternalIssueForm.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import {t} from 'sentry/locale';
22
import ExternalIssueStore from 'sentry/stores/externalIssueStore';
3-
import type {Group, PlatformExternalIssue, SentryAppInstallation} from 'sentry/types';
43
import type {Event} from 'sentry/types/event';
4+
import type {Group} from 'sentry/types/group';
5+
import type {
6+
PlatformExternalIssue,
7+
SentryAppInstallation,
8+
} from 'sentry/types/integrations';
59
import type {FeedbackIssue} from 'sentry/utils/feedback/types';
610
import getStacktraceBody from 'sentry/utils/getStacktraceBody';
711
import {addQueryParamsToExistingUrl} from 'sentry/utils/queryString';

static/app/components/pullRequestLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {Button} from 'sentry/components/button';
44
import ExternalLink from 'sentry/components/links/externalLink';
55
import {IconBitbucket, IconGithub, IconGitlab} from 'sentry/icons';
66
import {space} from 'sentry/styles/space';
7-
import type {PullRequest, Repository} from 'sentry/types';
7+
import type {PullRequest, Repository} from 'sentry/types/integrations';
88

99
function renderIcon(repo: Repository) {
1010
if (!repo.provider) {

static/app/components/quickTrace/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {Tooltip} from 'sentry/components/tooltip';
1717
import {backend, frontend, mobile, serverless} from 'sentry/data/platformCategories';
1818
import {IconFire} from 'sentry/icons';
1919
import {t, tct, tn} from 'sentry/locale';
20-
import type {OrganizationSummary} from 'sentry/types';
2120
import type {Event} from 'sentry/types/event';
21+
import type {OrganizationSummary} from 'sentry/types/organization';
2222
import {trackAnalytics} from 'sentry/utils/analytics';
2323
import {getDocsPlatform} from 'sentry/utils/docs';
2424
import getDuration from 'sentry/utils/duration/getDuration';

static/app/components/quickTrace/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type {Location, LocationDescriptor} from 'history';
22

33
import {normalizeDateTimeParams} from 'sentry/components/organizations/pageFilters/parse';
44
import {ALL_ACCESS_PROJECTS} from 'sentry/constants/pageFilters';
5-
import type {OrganizationSummary} from 'sentry/types';
65
import type {Event} from 'sentry/types/event';
6+
import type {OrganizationSummary} from 'sentry/types/organization';
77
import {defined} from 'sentry/utils';
88
import EventView from 'sentry/utils/discover/eventView';
99
import {

static/app/components/replaysOnboarding/sidebar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ import platforms, {otherPlatform} from 'sentry/data/platforms';
3737
import {t, tct} from 'sentry/locale';
3838
import pulsingIndicatorStyles from 'sentry/styles/pulsingIndicator';
3939
import {space} from 'sentry/styles/space';
40-
import type {PlatformKey, Project, SelectValue} from 'sentry/types';
40+
import type {SelectValue} from 'sentry/types/core';
41+
import type {PlatformKey, Project} from 'sentry/types/project';
4142
import EventWaiter from 'sentry/utils/eventWaiter';
4243
import useApi from 'sentry/utils/useApi';
4344
import useOrganization from 'sentry/utils/useOrganization';

static/app/components/replaysOnboarding/useLoadOnboardingDoc.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import * as Sentry from '@sentry/react';
33

44
import type {Docs} from 'sentry/components/onboarding/gettingStartedDoc/types';
55
import {replayPlatforms} from 'sentry/data/platformCategories';
6-
import type {Organization, PlatformIntegration, ProjectKey} from 'sentry/types';
6+
import type {Organization} from 'sentry/types/organization';
7+
import type {PlatformIntegration, ProjectKey} from 'sentry/types/project';
78
import {useApiQuery} from 'sentry/utils/queryClient';
89

910
function useLoadOnboardingDoc({

static/app/components/replaysOnboarding/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {replayFrontendPlatforms, replayPlatforms} from 'sentry/data/platformCategories';
22
import platforms from 'sentry/data/platforms';
3-
import type {PlatformIntegration, PlatformKey} from 'sentry/types';
3+
import type {PlatformIntegration, PlatformKey} from 'sentry/types/project';
44

55
export function generateDocKeys(platform: PlatformKey): string[] {
66
const platformKey = platform.startsWith('javascript')

0 commit comments

Comments
 (0)