Skip to content

Commit b9d21bc

Browse files
fix: resolve linting warnings
1 parent ec3886f commit b9d21bc

5 files changed

Lines changed: 5 additions & 262 deletions

File tree

src/CONST.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ const signupQualifiers = {
120120
SMB: 'smb',
121121
} as const;
122122

123-
124-
125123
type OnboardingAccounting = keyof typeof CONST.POLICY.CONNECTIONS.NAME_USER_FRIENDLY | null;
126124

127125
const onboardingInviteTypes = {
@@ -140,8 +138,6 @@ const onboardingCompanySize = {
140138

141139
type OnboardingInvite = ValueOf<typeof onboardingInviteTypes>;
142140

143-
144-
145141
const EMAIL_WITH_OPTIONAL_DOMAIN =
146142
/(?=((?=[\w'#%+-]+(?:\.[\w'#%+-]+)*@?)[\w.'#%+-]{1,64}(?:@(?:(?=[a-z\d]+(?:-+[a-z\d]+)*\.)(?:[a-z\d-]{1,63}\.)+[a-z]{2,63}))?(?= |_|\b))(?<end>.*))\S{3,254}(?=\k<end>$)/;
147143

@@ -6783,18 +6779,6 @@ type IOUActionParams = ValueOf<typeof CONST.IOU.ACTION_PARAMS>;
67836779
type SubscriptionType = ValueOf<typeof CONST.SUBSCRIPTION.TYPE>;
67846780
type CancellationType = ValueOf<typeof CONST.CANCELLATION_TYPE>;
67856781

6786-
export type {
6787-
Country,
6788-
IOUAction,
6789-
IOUType,
6790-
6791-
IOURequestType,
6792-
SubscriptionType,
6793-
FeedbackSurveyOptionID,
6794-
CancellationType,
6795-
OnboardingInvite,
6796-
OnboardingAccounting,
6797-
IOUActionParams,
6798-
};
6782+
export type {Country, IOUAction, IOUType, IOURequestType, SubscriptionType, FeedbackSurveyOptionID, CancellationType, OnboardingInvite, OnboardingAccounting, IOUActionParams};
67996783

68006784
export default CONST;

src/ONYXKEYS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {OnyxUpdate} from 'react-native-onyx';
22
import type {ValueOf} from 'type-fest';
3-
import type {OnboardingCompanySize} from '@libs/actions/Welcome/OnboardingFlow';
43
import type CONST from './CONST';
4+
import type {OnboardingCompanySize} from './libs/actions/Welcome/OnboardingFlow';
55
import type Platform from './libs/getPlatform/types';
66
import type * as FormTypes from './types/form';
77
import type * as OnyxTypes from './types/onyx';

src/libs/actions/Policy/Policy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ import type {PolicySelector} from '@pages/home/sidebar/FloatingActionButtonAndPo
8181
import * as PaymentMethods from '@userActions/PaymentMethods';
8282
import * as PersistedRequests from '@userActions/PersistedRequests';
8383
import {resolveEnableFeatureConflicts} from '@userActions/RequestConflictUtils';
84+
import {getOnboardingMessages} from '@userActions/Welcome/OnboardingFlow';
85+
import type {OnboardingCompanySize, OnboardingPurpose} from '@userActions/Welcome/OnboardingFlow';
8486
import CONST from '@src/CONST';
8587
import ONYXKEYS from '@src/ONYXKEYS';
8688
import type {
@@ -103,8 +105,6 @@ import type {Attributes, CompanyAddress, CustomUnit, NetSuiteCustomList, NetSuit
103105
import type {CustomFieldType} from '@src/types/onyx/PolicyEmployee';
104106
import type {OnyxData} from '@src/types/onyx/Request';
105107
import {isEmptyObject} from '@src/types/utils/EmptyObject';
106-
import {getOnboardingMessages} from '../Welcome/OnboardingFlow';
107-
import type {OnboardingCompanySize, OnboardingPurpose} from '../Welcome/OnboardingFlow';
108108
import {buildOptimisticMccGroup, buildOptimisticPolicyCategories} from './Category';
109109

110110
type ReportCreationData = Record<

src/libs/actions/Welcome/OnboardingFlow.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import getAdaptedStateFromPath from '@libs/Navigation/helpers/getAdaptedStateFro
77
import {linkingConfig} from '@libs/Navigation/linkingConfig';
88
import {navigationRef} from '@libs/Navigation/Navigation';
99
import type {RootNavigatorParamList} from '@libs/Navigation/types';
10+
import type {Video} from '@userActions/Report';
1011
import CONST from '@src/CONST';
1112
import NAVIGATORS from '@src/NAVIGATORS';
1213
import ONYXKEYS from '@src/ONYXKEYS';
1314
import ROUTES from '@src/ROUTES';
1415
import type Onboarding from '@src/types/onyx/Onboarding';
15-
import type {Video} from '../Report';
1616

1717
let onboardingInitialPath = '';
1818
const onboardingLastVisitedPathConnection = Onyx.connect({
@@ -374,7 +374,6 @@ const getOnboardingMessages = () => {
374374
};
375375
};
376376

377-
378377
function clearInitialPath() {
379378
onboardingInitialPath = '';
380379
}

src/libs/actions/Welcome/OnboardingFlowTasks.ts

Lines changed: 0 additions & 240 deletions
This file was deleted.

0 commit comments

Comments
 (0)