Skip to content

Commit b5609eb

Browse files
wjrosadaledupreezannemirasol
authored
Upgrading packages related to ESlint (#4622)
* ESlint upgrade * Changelog and readme entries * Update readme.txt Co-authored-by: daledupreez <[email protected]> * Changelog entry update * Update package.json Co-authored-by: daledupreez <[email protected]> * Update package.json Co-authored-by: daledupreez <[email protected]> * Update package.json Co-authored-by: daledupreez <[email protected]> * Fix CashApp unit test warning message --------- Co-authored-by: daledupreez <[email protected]> Co-authored-by: Anne Mirasol <[email protected]>
1 parent 6f68aad commit b5609eb

File tree

129 files changed

+1751
-842
lines changed

Some content is hidden

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

129 files changed

+1751
-842
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*** Changelog ***
22

33
= 9.9.0 - xxxx-xx-xx =
4+
* Dev - Upgrades the ESLint packages and their related libraries
45
* Dev - Upgrade the Prettier package and related libraries, and apply updated formatting rules
56
* Dev - Extracts Optimized Checkout logic from card payment method into new WC_Stripe_UPE_Payment_Method_OC class
67
* Fix - The availability of the Link payment method when the Optimized Checkout is enabled

client/blocks/credit-card/elements.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { useState } from '@wordpress/element';
2-
import { __ } from '@wordpress/i18n';
31
import {
42
CardElement,
53
CardNumberElement,
64
CardExpiryElement,
75
CardCvcElement,
86
} from '@stripe/react-stripe-js';
97
import { useElementOptions } from './use-element-options';
8+
import { useState } from '@wordpress/element';
9+
import { __ } from '@wordpress/i18n';
1010

1111
/** @typedef {import('react')} React */
1212

client/blocks/credit-card/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { useEffect, useState } from '@wordpress/element';
2-
import { __ } from '@wordpress/i18n';
31
import { ThreeDSecurePaymentHandler } from '../three-d-secure';
42
import { StripeCreditCard, getStripeCreditCardIcons } from './payment-method';
53
import { PAYMENT_METHOD_NAME } from './constants';
4+
import { __ } from '@wordpress/i18n';
5+
import { useEffect, useState } from '@wordpress/element';
66
import { getBlocksConfiguration } from 'wcstripe/blocks/utils';
77
import { loadStripe } from 'wcstripe/blocks/load-stripe';
88

client/blocks/credit-card/payment-method.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { useState } from '@wordpress/element';
21
import { Elements, useStripe } from '@stripe/react-stripe-js';
32
import { useCheckoutSubscriptions } from './use-checkout-subscriptions';
43
import { InlineCard, CardElements } from './elements';
4+
import { useState } from '@wordpress/element';
55
import { getBlocksConfiguration } from 'wcstripe/blocks/utils';
66

77
/**

client/blocks/credit-card/use-checkout-subscriptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { useEffect, useCallback, useState } from '@wordpress/element';
21
import { getErrorMessageForTypeAndCode } from '../../stripe-utils';
32
import { usePaymentIntents } from '../three-d-secure';
43
import { usePaymentProcessing } from './use-payment-processing';
4+
import { useEffect, useCallback, useState } from '@wordpress/element';
55

66
/**
77
* @typedef {import('@woocommerce/type-defs/registered-payment-method-props').EventRegistrationProps} EventRegistrationProps

client/blocks/credit-card/use-payment-processing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { useEffect } from '@wordpress/element';
21
import {
32
CardElement,
43
CardNumberElement,
@@ -7,6 +6,7 @@ import {
76
import { getErrorMessageForTypeAndCode } from '../../stripe-utils';
87
import { errorTypes, PAYMENT_METHOD_CARD } from '../../stripe-utils/constants';
98
import { PAYMENT_METHOD_NAME } from './constants';
9+
import { useEffect } from '@wordpress/element';
1010
import { getBlocksConfiguration } from 'wcstripe/blocks/utils';
1111

1212
/**

client/blocks/express-checkout/hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { useStripe, useElements } from '@stripe/react-stripe-js';
12
import { useCallback } from '@wordpress/element';
23
import { __ } from '@wordpress/i18n';
3-
import { useStripe, useElements } from '@stripe/react-stripe-js';
44
import {
55
onAbortPaymentHandler,
66
onCancelHandler,

client/blocks/payment-request/hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { useState, useEffect, useCallback } from '@wordpress/element';
21
import {
32
shippingAddressChangeHandler,
43
shippingOptionChangeHandler,
54
paymentProcessingHandler,
65
} from './event-handlers';
76
import { displayLoginConfirmation } from './login-confirmation';
7+
import { useState, useEffect, useCallback } from '@wordpress/element';
88
import {
99
getBlocksConfiguration,
1010
createPaymentRequestUsingCart,

client/blocks/payment-request/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { __ } from '@wordpress/i18n';
21
import { PAYMENT_METHOD_NAME } from './constants';
32
import { PaymentRequestExpress } from './payment-request-express';
43
import { applePayImage } from './apple-pay-preview';
4+
import { __ } from '@wordpress/i18n';
55
import { loadStripe } from 'wcstripe/blocks/load-stripe';
66
import {
77
getBlocksConfiguration,

client/blocks/payment-request/payment-request-express.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { useEffect } from '@wordpress/element';
2-
import { __ } from '@wordpress/i18n';
31
import {
42
Elements,
53
PaymentRequestButtonElement,
@@ -15,6 +13,8 @@ import {
1513
useOnClickHandler,
1614
useCancelHandler,
1715
} from './hooks';
16+
import { __ } from '@wordpress/i18n';
17+
import { useEffect } from '@wordpress/element';
1818
import { getBlocksConfiguration } from 'wcstripe/blocks/utils';
1919

2020
/**

0 commit comments

Comments
 (0)