Skip to content

Commit 12d112a

Browse files
committed
Disable linting
1 parent 8e38ff1 commit 12d112a

File tree

14 files changed

+38
-2
lines changed

14 files changed

+38
-2
lines changed

packages/checkout/widgets-lib/src/lib/hooks/useQuoteOrder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export const useQuoteOrder = ({
143143
fetching.current = false;
144144
}
145145
},
146+
// eslint-disable-next-line react-hooks/exhaustive-deps
146147
[environment, environmentId, preferredCurrency, fetching],
147148
);
148149

packages/checkout/widgets-lib/src/widgets/sale/context/SaleContextProvider.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ export function SaleContextProvider(props: {
230230
},
231231
});
232232
},
233+
// eslint-disable-next-line react-hooks/exhaustive-deps
233234
[],
234235
);
235236

@@ -243,6 +244,7 @@ export function SaleContextProvider(props: {
243244
};
244245

245246
getUserInfo();
247+
// eslint-disable-next-line react-hooks/exhaustive-deps
246248
}, [provider]);
247249

248250
useEffect(() => {
@@ -260,6 +262,7 @@ export function SaleContextProvider(props: {
260262
const assessment = await fetchRiskAssessment([address], checkout.config);
261263
setRiskAssessment(assessment);
262264
})();
265+
// eslint-disable-next-line react-hooks/exhaustive-deps
263266
}, [checkout, provider]);
264267

265268
const {
@@ -329,6 +332,7 @@ export function SaleContextProvider(props: {
329332
});
330333
},
331334

335+
// eslint-disable-next-line react-hooks/exhaustive-deps
332336
[paymentMethod, setPaymentMethod, executeResponse],
333337
);
334338

@@ -349,17 +353,20 @@ export function SaleContextProvider(props: {
349353
},
350354
});
351355
},
356+
// eslint-disable-next-line react-hooks/exhaustive-deps
352357
[[paymentMethod, executeResponse, tokenIds]],
353358
);
354359

355360
useEffect(() => {
356361
if (!signError) return;
357362
goToErrorView(signError.type, signError.data);
363+
// eslint-disable-next-line react-hooks/exhaustive-deps
358364
}, [signError]);
359365

360366
useEffect(() => {
361367
if (!orderQuoteError) return;
362368
goToErrorView(orderQuoteError.type, orderQuoteError.data);
369+
// eslint-disable-next-line react-hooks/exhaustive-deps
363370
}, [orderQuoteError]);
364371

365372
useEffect(() => {
@@ -415,6 +422,7 @@ export function SaleContextProvider(props: {
415422
hideExcludedPaymentTypes,
416423
riskAssessment,
417424
}),
425+
// eslint-disable-next-line react-hooks/exhaustive-deps
418426
[
419427
config,
420428
environment,

packages/checkout/widgets-lib/src/widgets/sale/views/PayWithCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export function PayWithCard() {
105105
}); // checkoutPrimarySalePayWithCard_OrderCreatedEvent
106106
};
107107

108+
// eslint-disable-next-line react-hooks/exhaustive-deps
108109
useEffect(() => sendPageView(SaleWidgetViews.PAY_WITH_CARD), []); // checkoutPrimarySalePayWithCardViewed
109110

110111
return (

packages/checkout/widgets-lib/src/widgets/sale/views/PayWithCoins.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export function PayWithCoins() {
9494
},
9595
onTxnStepExecuteAll,
9696
);
97+
// eslint-disable-next-line react-hooks/exhaustive-deps
9798
}, [signResponse, environment]);
9899

99100
const executeUserInitiatedTransaction = useCallback(() => {
@@ -135,13 +136,15 @@ export function PayWithCoins() {
135136
/>
136137
),
137138
});
139+
// eslint-disable-next-line react-hooks/exhaustive-deps
138140
}, [
139141
filteredTransactions,
140142
currentTransactionIndex,
141143
signResponse,
142144
environment,
143145
]);
144146

147+
// eslint-disable-next-line react-hooks/exhaustive-deps
145148
useEffect(() => sendPageView(SaleWidgetViews.PAY_WITH_COINS), []); // checkoutPrimarySalePayWithCoinsViewed
146149

147150
useEffect(() => {
@@ -154,6 +157,7 @@ export function PayWithCoins() {
154157
prevTransactionIndexRef.current = currentTransactionIndex;
155158
executeUserInitiatedTransaction();
156159
}
160+
// eslint-disable-next-line react-hooks/exhaustive-deps
157161
}, [filteredTransactions, currentTransactionIndex, provider]);
158162

159163
useEffect(() => {
@@ -163,6 +167,7 @@ export function PayWithCoins() {
163167
processing.current = true;
164168
executeAllTransactions();
165169
}
170+
// eslint-disable-next-line react-hooks/exhaustive-deps
166171
}, [signResponse, provider]);
167172

168173
useEffect(() => {
@@ -192,6 +197,7 @@ export function PayWithCoins() {
192197
},
193198
});
194199
}
200+
// eslint-disable-next-line react-hooks/exhaustive-deps
195201
}, [executeResponse]);
196202

197203
return null;

packages/checkout/widgets-lib/src/widgets/sale/views/PaymentMethods.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,15 @@ export function PaymentMethods() {
103103
},
104104
});
105105
}
106+
// eslint-disable-next-line react-hooks/exhaustive-deps
106107
}, [paymentMethod]);
107108

109+
// eslint-disable-next-line react-hooks/exhaustive-deps
108110
useEffect(() => sendPageView(SaleWidgetViews.PAYMENT_METHODS), []); // checkoutPrimarySalePaymentMethodsViewed
109111
useEffect(() => {
110112
if (!invalidParameters) return;
111113
goToErrorView(SaleErrorTypes.INVALID_PARAMETERS);
114+
// eslint-disable-next-line react-hooks/exhaustive-deps
112115
}, [invalidParameters]);
113116

114117
return (

packages/checkout/widgets-lib/src/widgets/sale/views/SaleErrorView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ export function SaleErrorView({
247247
inputValue: StateMachineInput.ERROR,
248248
children: <HandoverContent {...getErrorViewProps()} />,
249249
});
250+
// eslint-disable-next-line react-hooks/exhaustive-deps
250251
}, [currentErrorType, environment]);
251252

252253
return null;

packages/checkout/widgets-lib/src/widgets/swap/views/ApproveERC20Onboarding.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export function ApproveERC20Onboarding({ data }: ApproveERC20Props) {
6161
swapFormInfo: data.swapFormInfo,
6262
},
6363
});
64+
// eslint-disable-next-line react-hooks/exhaustive-deps
6465
}, []);
6566

6667
// Get symbol from swap info for approve amount text
@@ -94,6 +95,7 @@ export function ApproveERC20Onboarding({ data }: ApproveERC20Props) {
9495
},
9596
},
9697
});
98+
// eslint-disable-next-line react-hooks/exhaustive-deps
9799
}, [viewDispatch]);
98100

99101
const handleExceptions = (err, swapFormData:PrefilledSwapForm) => {
@@ -203,6 +205,7 @@ export function ApproveERC20Onboarding({ data }: ApproveERC20Props) {
203205
} finally {
204206
setLoading(false);
205207
}
208+
// eslint-disable-next-line react-hooks/exhaustive-deps
206209
}, [
207210
checkout,
208211
provider,
@@ -234,6 +237,7 @@ export function ApproveERC20Onboarding({ data }: ApproveERC20Props) {
234237
)}
235238
</SimpleTextBody>
236239
),
240+
// eslint-disable-next-line react-hooks/exhaustive-deps
237241
[data.swapFormInfo, fromToken, isPassport],
238242
);
239243

@@ -245,6 +249,7 @@ export function ApproveERC20Onboarding({ data }: ApproveERC20Props) {
245249
: 'views.APPROVE_ERC20.approveSpending.footer.buttonText')}
246250
onActionClick={handleApproveSpendingClick}
247251
/>
252+
// eslint-disable-next-line react-hooks/exhaustive-deps
248253
), [rejectedSpending, handleApproveSpendingClick, loading]);
249254

250255
/* ----------------- */
@@ -305,6 +310,7 @@ export function ApproveERC20Onboarding({ data }: ApproveERC20Props) {
305310
} finally {
306311
setLoading(false);
307312
}
313+
// eslint-disable-next-line react-hooks/exhaustive-deps
308314
}, [
309315
checkout,
310316
provider,
@@ -331,6 +337,7 @@ export function ApproveERC20Onboarding({ data }: ApproveERC20Props) {
331337
: 'views.APPROVE_ERC20.approveSwap.footer.buttonText')}
332338
onActionClick={handleApproveSwapClick}
333339
/>
340+
// eslint-disable-next-line react-hooks/exhaustive-deps
334341
), [rejectedSwap, handleApproveSwapClick, loading]);
335342

336343
return (

packages/checkout/widgets-lib/src/widgets/swap/views/SwapCoins.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,14 @@ export function SwapCoins({
7676
toTokenAddress,
7777
},
7878
});
79+
// eslint-disable-next-line react-hooks/exhaustive-deps
7980
}, []);
8081

8182
useEffect(() => {
8283
if (hasZeroBalance(tokenBalances, IMX_TOKEN_SYMBOL) && !isPassportProvider(provider)) {
8384
setShowNotEnoughImxDrawer(true);
8485
}
86+
// eslint-disable-next-line react-hooks/exhaustive-deps
8587
}, [tokenBalances]);
8688

8789
return (

packages/checkout/widgets-lib/src/widgets/swap/views/SwapInProgress.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export function SwapInProgress({
3434
swapFormInfo: swapForm,
3535
},
3636
});
37+
// eslint-disable-next-line react-hooks/exhaustive-deps
3738
}, []);
3839

3940
useEffect(() => {
@@ -83,6 +84,7 @@ export function SwapInProgress({
8384
});
8485
}
8586
})();
87+
// eslint-disable-next-line react-hooks/exhaustive-deps
8688
}, [transactionResponse]);
8789

8890
return (

packages/checkout/widgets-lib/src/widgets/wallet/components/BalanceItem/BalanceItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export function BalanceItem({
119119
);
120120

121121
return canBuy || canAdd;
122+
// eslint-disable-next-line react-hooks/exhaustive-deps
122123
}, [
123124
isOnRampEnabled,
124125
onRampAllowedTokens,

0 commit comments

Comments
 (0)