diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ac3a89ef1..d30e9a86d6 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 diff --git a/.prettierignore b/.prettierignore index 0b4656ae4b..a72bc5d835 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,3 +2,4 @@ build dist coverage CHANGELOG.md +.husky/_ diff --git a/src/zoid/card-fields/component.jsx b/src/zoid/card-fields/component.jsx index fc49a6a388..237d13b503 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, }, }, });