Skip to content

Commit 802f3df

Browse files
committed
chore: fmt
1 parent 6325846 commit 802f3df

File tree

10 files changed

+21
-22
lines changed

10 files changed

+21
-22
lines changed

packages/cli/dev.env.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ declare module 'react-router' {
1212
/**
1313
* Declare local additions to the Remix loader context.
1414
*/
15-
export interface AppLoadContext
16-
extends HydrogenContext<HydrogenSession, undefined, I18nLocale> {}
15+
export interface AppLoadContext extends HydrogenContext<
16+
HydrogenSession,
17+
undefined,
18+
I18nLocale
19+
> {}
1720

1821
// TODO: remove this once we've migrated to `Route.LoaderArgs` instead for our loaders
1922
interface LoaderFunctionArgs {

packages/cli/src/lib/codegen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export async function generateDefaultConfig(
309309

310310
return Boolean(
311311
schema.endsWith(baseSfapiSchema) ||
312-
(baseCaapiSchema && schema.endsWith(baseCaapiSchema)),
312+
(baseCaapiSchema && schema.endsWith(baseCaapiSchema)),
313313
);
314314
};
315315

packages/cli/src/lib/mini-oxygen/workerd.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ export async function startWorkerdServer({
4747
async function handleCustomerAccountSchema() {
4848
// Request coming from /graphiql
4949
const require = createRequire(import.meta.url);
50-
const filePath = require.resolve(
51-
'@shopify/hydrogen/customer-account.schema.json',
52-
);
50+
const filePath =
51+
require.resolve('@shopify/hydrogen/customer-account.schema.json');
5352

5453
return new Response(createFileReadStream(filePath), {
5554
headers: {'Content-Type': 'application/json'},

packages/hydrogen-react/src/AddToCartButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,5 @@ export function AddToCartButton<AsType extends React.ElementType = 'button'>(
115115
// This is only for documentation purposes, and it is not used in the code.
116116
export interface AddToCartButtonPropsForDocs<
117117
AsType extends React.ElementType = 'button',
118-
> extends AddToCartButtonPropsBase,
119-
CustomBaseButtonProps<AsType> {}
118+
>
119+
extends AddToCartButtonPropsBase, CustomBaseButtonProps<AsType> {}

packages/hydrogen-react/src/BuyNowButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ export function BuyNowButton<AsType extends React.ElementType = 'button'>(
7979
// This is only for documentation purposes, and it is not used in the code.
8080
export interface BuyNowButtonPropsForDocs<
8181
AsType extends React.ElementType = 'button',
82-
> extends BuyNowButtonPropsBase,
83-
CustomBaseButtonProps<AsType> {}
82+
>
83+
extends BuyNowButtonPropsBase, CustomBaseButtonProps<AsType> {}

packages/hydrogen-react/src/CartCost.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ export function CartCost(props: CartCostProps): JSX.Element | null {
4444

4545
// This is only for documentation purposes, and it is not used in the code.
4646
export interface CartCostPropsForDocs<AsType extends React.ElementType = 'div'>
47-
extends Omit<MoneyPropsBase<AsType>, 'data'>,
48-
CartCostPropsBase {}
47+
extends Omit<MoneyPropsBase<AsType>, 'data'>, CartCostPropsBase {}

packages/hydrogen-react/src/ProductPrice.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,7 @@ export function ProductPrice<
103103
// This is only for documentation purposes, and it is not used in the code.
104104
export interface ProductPricePropsForDocs<
105105
AsType extends React.ElementType = 'div',
106-
> extends Omit<MoneyPropsBase<AsType>, 'data' | 'measurement'>,
106+
>
107+
extends
108+
Omit<MoneyPropsBase<AsType>, 'data' | 'measurement'>,
107109
ProductPriceProps {}

packages/hydrogen-react/src/ShopifyProvider.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ export interface ShopifyProviderProps extends ShopifyProviderBase {
160160
}
161161

162162
export interface ShopifyContextValue
163-
extends ShopifyProviderBase,
164-
ShopifyContextReturn {}
163+
extends ShopifyProviderBase, ShopifyContextReturn {}
165164

166165
type ShopifyContextReturn = {
167166
/**

packages/hydrogen-react/src/analytics-types.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ export type ShopifySalesChannels = keyof typeof ShopifySalesChannel;
139139
export type AnalyticsEventNames = keyof typeof AnalyticsEventName;
140140

141141
export interface ShopifyPageViewPayload
142-
extends ShopifyAnalyticsBase,
143-
ClientBrowserParameters {
142+
extends ShopifyAnalyticsBase, ClientBrowserParameters {
144143
/** Canonical url. */
145144
canonicalUrl?: string;
146145
/** Shopify page type. */
@@ -173,8 +172,7 @@ export type ShopifyPageView = {
173172
};
174173

175174
export interface ShopifyAddToCartPayload
176-
extends ShopifyAnalyticsBase,
177-
ClientBrowserParameters {
175+
extends ShopifyAnalyticsBase, ClientBrowserParameters {
178176
/** Shopify cart id in the form of `gid://shopify/Cart/<id>`. */
179177
cartId: string;
180178
}

packages/hydrogen/src/vite/hydrogen-middleware.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ export function setupHydrogenMiddleware(
8686
// so we serve it from here.
8787

8888
const require = createRequire(import.meta.url);
89-
const filePath = require.resolve(
90-
'@shopify/hydrogen/customer-account.schema.json',
91-
);
89+
const filePath =
90+
require.resolve('@shopify/hydrogen/customer-account.schema.json');
9291

9392
res.writeHead(200, {'Content-Type': 'application/json'});
9493
createReadStream(filePath).pipe(res);

0 commit comments

Comments
 (0)