Skip to content

Commit 9aab982

Browse files
committed
chore: lint & format
1 parent c034036 commit 9aab982

File tree

110 files changed

+2318
-879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+2318
-879
lines changed

src/AppOnboarded.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const AppOnboarded = (): ReactElement => {
3636
const isOnline = useAppSelector(isOnlineSelector);
3737

3838
// on App start
39+
// biome-ignore lint/correctness/useExhaustiveDependencies: onMount
3940
useEffect(() => {
4041
startWalletServices({ selectedNetwork, selectedWallet });
4142

@@ -49,10 +50,9 @@ const AppOnboarded = (): ReactElement => {
4950
return (): void => {
5051
unsubscribeFromLightningSubscriptions();
5152
};
52-
// onMount
53-
// eslint-disable-next-line react-hooks/exhaustive-deps
5453
}, []);
5554

55+
// biome-ignore lint/correctness/useExhaustiveDependencies: onMount
5656
useEffect(() => {
5757
// on AppState change
5858
const appStateSubscription = AppState.addEventListener(
@@ -84,7 +84,6 @@ const AppOnboarded = (): ReactElement => {
8484
return (): void => {
8585
appStateSubscription.remove();
8686
};
87-
// onMount
8887
}, [selectedNetwork]);
8988

9089
useEffect(() => {

src/assets/tos.tsx

Lines changed: 1676 additions & 212 deletions
Large diffs are not rendered by default.

src/components/AmountToggle.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ const AmountToggle = ({
3434
decimalLength={decimalLength}
3535
unitType="secondary"
3636
symbol={true}
37-
testID={testID + '-secondary'}
37+
testID={`${testID}-secondary`}
3838
/>
3939
<Money
4040
sats={amount}
4141
decimalLength={decimalLength}
4242
unitType="primary"
4343
symbol={true}
44-
testID={testID + '-primary'}
44+
testID={`${testID}-primary`}
4545
/>
4646
</Pressable>
4747
);

src/components/Biometrics.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,11 @@ const Biometrics = ({
5959
t('bio_confirm', { biometricsName: data.biometryType || t('bio') }),
6060
);
6161
})();
62-
// eslint-disable-next-line react-hooks/exhaustive-deps
6362
}, [t]);
6463

64+
// biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
6565
const Icon = useCallback(
6666
() => getIcon(biometryData),
67-
//eslint-disable-next-line react-hooks/exhaustive-deps
6867
[biometryData?.biometryType],
6968
);
7069

@@ -87,6 +86,7 @@ const Biometrics = ({
8786
}
8887
}, [biometryData?.available, biometryData?.biometryType, t]);
8988

89+
// biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
9090
const authenticate = useCallback(
9191
(promptMessage?: string): void => {
9292
if (!promptMessage) {
@@ -112,7 +112,6 @@ const Biometrics = ({
112112
onFailure?.();
113113
});
114114
},
115-
// eslint-disable-next-line react-hooks/exhaustive-deps
116115
[biometryData?.biometryType, t],
117116
);
118117

src/components/BottomSheetScreen.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ const BottomSheetScreen = ({
5454
/>
5555
<View style={styles.content}>
5656
<View
57-
// eslint-disable-next-line react-native/no-inline-styles
5857
style={[styles.imageContainer, { marginBottom: isLarge ? 32 : 0 }]}>
5958
<Image style={styles.image} source={image} />
6059
</View>

src/components/BottomSheetWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const BottomSheetWrapper = forwardRef(
9595
}, [data.isOpen]);
9696

9797
useImperativeHandle(ref, () => ({
98-
snapToIndex(index: number = 0): void {
98+
snapToIndex(index = 0): void {
9999
bottomSheetRef.current?.snapToIndex(index);
100100
},
101101
expand(): void {

src/components/Camera.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ const Camera = ({
3939
const checkResponse = await check(cameraPermission);
4040
switch (checkResponse) {
4141
case RESULTS.UNAVAILABLE:
42-
case RESULTS.BLOCKED:
42+
case RESULTS.BLOCKED: {
4343
setCameraStatus(Status.NOT_AUTHORIZED);
4444
break;
45-
case RESULTS.DENIED:
45+
}
46+
case RESULTS.DENIED: {
4647
const rationale = {
4748
title: t('camera_ask_title'),
4849
message: t('camera_ask_msg'),
@@ -56,10 +57,12 @@ const Camera = ({
5657
: Status.NOT_AUTHORIZED,
5758
);
5859
break;
60+
}
5961
case RESULTS.LIMITED:
60-
case RESULTS.GRANTED:
62+
case RESULTS.GRANTED: {
6163
setCameraStatus(Status.AUTHORIZED);
6264
break;
65+
}
6366
}
6467
})();
6568
}, [t]);

src/components/ContactsList.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ const ContactsList = ({
106106
const name = contact?.name ?? 'Contact Name';
107107
const char = name.slice(0, 1);
108108
if (char) {
109-
sections[char]
110-
? sections[char].push(contact)
111-
: (sections[char] = [contact]);
109+
if (sections[char]) {
110+
sections[char].push(contact);
111+
} else {
112+
sections[char] = [contact];
113+
}
112114
}
113115
});
114116

@@ -130,7 +132,6 @@ const ContactsList = ({
130132
const List = bottomSheet ? BottomSheetSectionList : SectionList;
131133

132134
const renderSectionHeader = useCallback(
133-
// eslint-disable-next-line react/no-unused-prop-types
134135
({ section: { title } }: { section: { title: string } }): ReactElement => {
135136
const isFirst = title === sectionedContacts[0].title;
136137
return (
@@ -145,7 +146,6 @@ const ContactsList = ({
145146
);
146147

147148
const renderItem = useCallback(
148-
// eslint-disable-next-line react/no-unused-prop-types
149149
({ item }: { item: IContactRecord }): ReactElement => (
150150
<ContactItem contact={item} onPress={onPress} />
151151
),

src/components/LabeledInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const LabeledInput = ({
5858
<BodyS
5959
color="brand"
6060
style={styles.error}
61-
testID={testID ? testID + '-error' : undefined}>
61+
testID={testID ? `${testID}-error` : undefined}>
6262
{error}
6363
</BodyS>
6464
)}

src/components/List.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,7 @@ const _Item = memo((item: ItemData): ReactElement => {
251251

252252
return (
253253
<TouchableOpacity
254-
style={
255-
// eslint-disable-next-line react-native/no-inline-styles
256-
{ opacity: enabled ? 1 : 0.5 }
257-
}
254+
style={{ opacity: enabled ? 1 : 0.5 }}
258255
activeOpacity={0.7}
259256
disabled={disabled}
260257
testID={testID}

0 commit comments

Comments
 (0)