Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit d9f0aa8

Browse files
dependabot[bot]dinhtungdugithub-actions[bot]
authored
Bump @woocommerce/eslint-plugin from 2.0.0 to 2.2.0 (#6837)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tung Du <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 4b49d76 commit d9f0aa8

File tree

13 files changed

+21
-21
lines changed

13 files changed

+21
-21
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ module.exports = {
7777
ignoreGlobals: true,
7878
},
7979
],
80+
'react/react-in-jsx-scope': 'off',
8081
},
8182
overrides: [
8283
{
@@ -125,6 +126,7 @@ module.exports = {
125126
},
126127
},
127128
],
129+
'react/react-in-jsx-scope': 'off',
128130
},
129131
},
130132
{

assets/js/base/components/checkbox-list/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ const CheckboxList = ( {
141141
onChange={ () => {
142142
onChange( option.value );
143143
} }
144+
disabled={ isDisabled }
144145
/>
145146
</li>
146147
{ shouldTruncateOptions &&

assets/js/data/payment/test/set-default-payment-method.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe( 'setDefaultPaymentMethod', () => {
2828
},
2929
};
3030

31-
it( ' correctly sets the first payment method in the list of available payment methods', async () => {
31+
it( 'correctly sets the first payment method in the list of available payment methods', async () => {
3232
jest.spyOn( wpDataFunctions, 'select' ).mockImplementation(
3333
( storeName ) => {
3434
const originalStore = originalSelect( storeName );
@@ -72,7 +72,7 @@ describe( 'setDefaultPaymentMethod', () => {
7272
'wc-payment-gateway-1'
7373
);
7474
} );
75-
it( ' correctly sets the saved payment method if one is available', async () => {
75+
it( 'correctly sets the saved payment method if one is available', async () => {
7676
jest.spyOn( wpDataFunctions, 'select' ).mockImplementation(
7777
( storeName ) => {
7878
const originalStore = originalSelect( storeName );

checkstyle.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,7 +2155,6 @@
21552155
<error line="188" column="26" severity="error" message="Property &apos;toBeDisabled&apos; does not exist on type &apos;JestMatchers&lt;HTMLElement&gt;&apos;." source="TS2339" />
21562156
</file>
21572157
<file name="assets/js/blocks/cart/block.js">
2158-
<error line="16" column="30" severity="error" message="Cannot find module &apos;@woocommerce/base-context/providers&apos; or its corresponding type declarations." source="TS2307" />
21592158
<error line="25" column="55" severity="error" message="Expected 0 arguments, but got 1." source="TS2554" />
21602159
<error line="27" column="18" severity="error" message="Binding element &apos;children&apos; implicitly has an &apos;any&apos; type." source="TS7031" />
21612160
<error line="29" column="10" severity="error" message="Property &apos;hasDarkControls&apos; does not exist on type &apos;{}&apos;." source="TS2339" />
@@ -2650,7 +2649,6 @@
26502649
<error line="15" column="68" severity="error" message="Expected 0 arguments, but got 1." source="TS2554" />
26512650
</file>
26522651
<file name="assets/js/blocks/checkout/block.tsx">
2653-
<error line="12" column="39" severity="error" message="Cannot find module &apos;@woocommerce/base-context/providers&apos; or its corresponding type declarations." source="TS2307" />
26542652
<error line="95" column="4" severity="error" message="Type &apos;{ allowCreateAccount: boolean; showCompanyField: boolean; requireCompanyField: boolean; showApartmentField: boolean; showPhoneField: boolean; requirePhoneField: boolean; }&apos; is missing the following properties from type &apos;CheckoutBlockContextProps&apos;: showOrderNotes, showPolicyLinks, showReturnToCart, cartPageId, showRateAfterTaxName" source="TS2739" />
26552653
<error line="184" column="4" severity="error" message="No overload matches this call.
26562654
Overload 1 of 2, &apos;(props: BlockErrorBoundaryProps | Readonly&lt;BlockErrorBoundaryProps&gt;): BlockErrorBoundary&apos;, gave the following error.
@@ -3231,11 +3229,6 @@
32313229
Types of parameters &apos;attributes&apos; and &apos;props&apos; are incompatible.
32323230
Type &apos;BlockProps&lt;Record&lt;string, unknown&gt;, Record&lt;string, unknown&gt;&gt;&apos; is missing the following properties from type &apos;Props&apos;: contents, addToCartBehaviour, hasHiddenPrice" source="TS2322" />
32333231
</file>
3234-
<file name="assets/js/blocks/mini-cart/frontend.ts">
3235-
<error line="5" column="27" severity="error" message="Cannot find module &apos;@woocommerce/base-utils/preload-script&apos; or its corresponding type declarations." source="TS2307" />
3236-
<error line="6" column="28" severity="error" message="Cannot find module &apos;@woocommerce/base-utils/lazy-load-script&apos; or its corresponding type declarations." source="TS2307" />
3237-
<error line="7" column="46" severity="error" message="Cannot find module &apos;@woocommerce/base-utils/legacy-events&apos; or its corresponding type declarations." source="TS2307" />
3238-
</file>
32393232
<file name="assets/js/blocks/mini-cart/index.tsx">
32403233
<error line="36" column="3" severity="error" message="Type &apos;true&apos; has no properties in common with type &apos;Partial&lt;ColorProps&gt;&apos;." source="TS2559" />
32413234
<error line="66" column="2" severity="error" message="Type &apos;({ attributes, setAttributes }: Props) =&gt; ReactElement&apos; is not assignable to type &apos;ComponentType&lt;BlockEditProps&lt;{}&gt;&gt; | undefined&apos;.

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"@woocommerce/api": "0.2.0",
134134
"@woocommerce/data": "^4.1.0",
135135
"@woocommerce/e2e-utils": "0.2.0",
136-
"@woocommerce/eslint-plugin": "2.0.0",
136+
"@woocommerce/eslint-plugin": "2.2.0",
137137
"@woocommerce/woocommerce-rest-api": "1.0.1",
138138
"@wordpress/api-fetch": "6.11.0",
139139
"@wordpress/babel-preset-default": "6.14.0",

tests/e2e/specs/shopper/cart-checkout/cart.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ describe( 'Shopper → Cart', () => {
105105
await shopper.block.productIsInCart( SIMPLE_VIRTUAL_PRODUCT_NAME, 4 );
106106
} );
107107

108+
// eslint-disable-next-line jest/expect-expect
108109
it( 'User can see Cross-Sells products block', async () => {
109110
await shopper.block.emptyCart();
110111
await shopper.block.goToShop();

tests/e2e/specs/shopper/filter-products-by-attribute.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ describe( `${ block.name } Block`, () => {
106106
} );
107107
} );
108108

109-
describe( 'with PHP classic template ', () => {
109+
describe( 'with PHP classic template', () => {
110110
const productCatalogTemplateId =
111111
'woocommerce/woocommerce//archive-product';
112112

tests/e2e/specs/shopper/filter-products-by-price.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe( `${ block.name } Block`, () => {
110110
} );
111111
} );
112112

113-
describe( 'with PHP classic template ', () => {
113+
describe( 'with PHP classic template', () => {
114114
const productCatalogTemplateId =
115115
'woocommerce/woocommerce//archive-product';
116116

tests/e2e/specs/shopper/filter-products-by-rating.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe( `${ block.name } Block`, () => {
8888
} );
8989
} );
9090

91-
describe( 'with PHP classic template ', () => {
91+
describe( 'with PHP classic template', () => {
9292
const productCatalogTemplateId =
9393
'woocommerce/woocommerce//archive-product';
9494

0 commit comments

Comments
 (0)