Skip to content

Commit 2aededc

Browse files
npslaneyclaude
andcommitted
fix: address biome linting issues
- Organize imports alphabetically - Use Number.isNaN instead of global isNaN - Format multi-line exports Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d8d1d50 commit 2aededc

5 files changed

Lines changed: 14 additions & 11 deletions

File tree

src/contracts/mcp/checkouts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { oc } from "@orpc/contract";
22
import { z } from "zod";
3+
import { CurrencySchema } from "../../schemas/currency";
4+
import { CustomerSchema } from "../../schemas/customer";
35
import {
46
PaginationInputSchema,
57
PaginationOutputSchema,
68
} from "../../schemas/pagination";
7-
import { CustomerSchema } from "../../schemas/customer";
8-
import { CurrencySchema } from "../../schemas/currency";
99

1010
/**
1111
* Checkout status enum.

src/contracts/mcp/orders.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { oc } from "@orpc/contract";
22
import { z } from "zod";
3-
import { OrderSchema, OrderItemSchema } from "../../schemas/order";
3+
import { CustomerSchema } from "../../schemas/customer";
4+
import { OrderItemSchema, OrderSchema } from "../../schemas/order";
45
import {
56
PaginationInputSchema,
67
PaginationOutputSchema,
78
} from "../../schemas/pagination";
8-
import { CustomerSchema } from "../../schemas/customer";
99

1010
// Order with related data for list view
1111
const OrderWithRelationsSchema = OrderSchema.extend({

src/contracts/mcp/products.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { oc } from "@orpc/contract";
22
import { z } from "zod";
3-
import { ProductSchema, ProductPriceSchema } from "../products";
43
import {
54
PaginationInputSchema,
65
PaginationOutputSchema,
76
} from "../../schemas/pagination";
87
import { ProductPriceInputSchema } from "../../schemas/product-price-input";
8+
import { ProductPriceSchema, ProductSchema } from "../products";
99

1010
// Output schema - product with its active price
1111
// Note: Uses modifiedAt to match Prisma schema naming

src/index.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { checkout } from "./contracts/checkout";
2-
import { onboarding } from "./contracts/onboarding";
3-
import { products } from "./contracts/products";
42
import {
3+
checkouts as mcpCheckouts,
54
customers as mcpCustomers,
6-
products as mcpProducts,
75
orders as mcpOrders,
8-
checkouts as mcpCheckouts,
6+
products as mcpProducts,
97
} from "./contracts/mcp";
8+
import { onboarding } from "./contracts/onboarding";
9+
import { products } from "./contracts/products";
1010

1111
export type {
1212
ConfirmCheckout,
@@ -40,7 +40,10 @@ export { CustomerSchema } from "./schemas/customer";
4040
export type { Order, OrderItem } from "./schemas/order";
4141
export { OrderSchema, OrderItemSchema } from "./schemas/order";
4242
export type { PaginationInput, PaginationOutput } from "./schemas/pagination";
43-
export { PaginationInputSchema, PaginationOutputSchema } from "./schemas/pagination";
43+
export {
44+
PaginationInputSchema,
45+
PaginationOutputSchema,
46+
} from "./schemas/pagination";
4447
export type { ProductPriceInput } from "./schemas/product-price-input";
4548
export { ProductPriceInputSchema } from "./schemas/product-price-input";
4649

src/schemas/product-price-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const ProductPriceInputSchema = z
5656
if (
5757
data.priceAmount === undefined ||
5858
data.priceAmount === null ||
59-
isNaN(data.priceAmount)
59+
Number.isNaN(data.priceAmount)
6060
) {
6161
ctx.addIssue({
6262
code: z.ZodIssueCode.custom,

0 commit comments

Comments
 (0)