From 863b04c74f3e98527def24b912465f2eeddbd276 Mon Sep 17 00:00:00 2001 From: Spencer Sablan Date: Tue, 1 Oct 2024 09:20:57 -0700 Subject: [PATCH 1/3] Fix formatting --- src/zoid/card-fields/component.jsx | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/zoid/card-fields/component.jsx b/src/zoid/card-fields/component.jsx index fc49a6a38..237d13b50 100644 --- a/src/zoid/card-fields/component.jsx +++ b/src/zoid/card-fields/component.jsx @@ -47,11 +47,11 @@ const CARD_FIELD_TYPE = { }; type InstallmentsConfiguration = {| - financingCountryCode : string, - currencyCode : string, - billingCountryCode : string, - amount : string, - includeBuyerInstallments ? : boolean + financingCountryCode: string, + currencyCode: string, + billingCountryCode: string, + amount: string, + includeBuyerInstallments?: boolean, |}; type CardFieldsProps = {| @@ -108,10 +108,12 @@ type CardFieldsProps = {| hcfSessionID: string, partnerAttributionID: string, merchantID: $ReadOnlyArray, - installments? : {| - onInstallmentsRequested : () => InstallmentsConfiguration | ZalgoPromise, - onInstallmentsAvailable : (Object) => void, - onInstallmentsError? : (Object) => void + installments?: {| + onInstallmentsRequested: () => + | InstallmentsConfiguration + | ZalgoPromise, + onInstallmentsAvailable: (Object) => void, + onInstallmentsError?: (Object) => void, |}, |}; @@ -439,7 +441,7 @@ export const getCardFieldsComponent: () => CardFieldsComponent = memoize( installments: { type: "object", required: false, - value: ({ props }) => props.parent.props.installments + value: ({ props }) => props.parent.props.installments, }, }, }); From b7f4a7f6b71ac58ad32c0d98e53a8d73340a6a00 Mon Sep 17 00:00:00 2001 From: Spencer Sablan Date: Tue, 1 Oct 2024 09:21:20 -0700 Subject: [PATCH 2/3] Add format check to ci --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ac3a89ef..d30e9a86d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,6 +29,9 @@ jobs: with: useLockFile: false + - name: ▶️ Check Formatting + run: npm run format:check + - name: ▶️ Run Lint run: npm run lint From 301552ba94ab8b7fccd3d159ecc2d9baf48bb2dc Mon Sep 17 00:00:00 2001 From: Spencer Sablan Date: Tue, 1 Oct 2024 09:28:00 -0700 Subject: [PATCH 3/3] Add .husky/_ to prettierignore --- .prettierignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.prettierignore b/.prettierignore index 0b4656ae4..a72bc5d83 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,3 +2,4 @@ build dist coverage CHANGELOG.md +.husky/_