Skip to content

Commit 0d1dd5d

Browse files
committed
lint-fix: with bun
1 parent 281aed1 commit 0d1dd5d

171 files changed

Lines changed: 1928 additions & 1896 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/admin/src/features/reviews/components/review-actions-menu.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ import {
66
DropdownMenuSeparator,
77
DropdownMenuTrigger,
88
} from "@qibla/ui/components/dropdown-menu";
9-
import { IconCheck, IconDots, IconEyeOff, IconRotate } from "@tabler/icons-react";
9+
import {
10+
IconCheck,
11+
IconDots,
12+
IconEyeOff,
13+
IconRotate,
14+
} from "@tabler/icons-react";
1015
import { toast } from "sonner";
11-
import type { ReviewStatus } from "@/features/reviews/lib/schemas";
1216
import { useSetReviewStatus } from "@/features/reviews/hooks/use-reviews";
17+
import type { ReviewStatus } from "@/features/reviews/lib/schemas";
1318

1419
type Props = {
1520
id: string;

apps/admin/src/features/reviews/components/reviews-page.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@ type Props = {
1010
onStatusChange: (status: ReviewStatus | undefined) => void;
1111
};
1212

13-
export function ReviewsPage({
14-
status,
15-
page,
16-
pageSize,
17-
onStatusChange,
18-
}: Props) {
13+
export function ReviewsPage({ status, page, pageSize, onStatusChange }: Props) {
1914
const counts = useReviewCounts();
2015

2116
return (

apps/admin/src/features/reviews/components/reviews-table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
TableHeader,
88
TableRow,
99
} from "@qibla/ui/components/table";
10-
import type { ListReviewsInput } from "@/features/reviews/lib/schemas";
1110
import { useReviewList } from "@/features/reviews/hooks/use-reviews";
11+
import type { ListReviewsInput } from "@/features/reviews/lib/schemas";
1212
import { ReviewActionsMenu } from "./review-actions-menu";
1313
import { ReviewRatingStars } from "./review-rating-stars";
1414
import { ReviewStatusBadge } from "./review-status-badge";

apps/admin/src/features/reviews/server/reviews.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import { mosque, review } from "@qibla/db/schema/mosque";
44
import { createServerFn } from "@tanstack/react-start";
55
import { and, desc, eq, sql } from "drizzle-orm";
66
import { adminMiddleware } from "@/middleware/auth-middleware";
7-
import {
8-
listReviewsSchema,
9-
setReviewStatusSchema,
10-
} from "../lib/schemas";
7+
import { listReviewsSchema, setReviewStatusSchema } from "../lib/schemas";
118

129
async function recomputeMosqueRating(mosqueId: string) {
1310
const [stats] = await db

apps/admin/src/routes/_admin/reviews/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import { ReviewsPage } from "@/features/reviews/components/reviews-page";
55
const searchSchema = z.object({
66
page: z.number().optional().default(1),
77
pageSize: z.number().optional().default(20),
8-
status: z.enum(["approved", "pending", "hidden"]).optional().default("pending"),
8+
status: z
9+
.enum(["approved", "pending", "hidden"])
10+
.optional()
11+
.default("pending"),
912
});
1013

1114
export const Route = createFileRoute("/_admin/reviews/")({

apps/admin/src/routes/api/rpc/$.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { createContext } from "@qibla/api/context"
2-
import { appRouter } from "@qibla/api/router"
3-
import { RPCHandler } from "@orpc/server/fetch"
4-
import { createFileRoute } from "@tanstack/react-router"
1+
import { RPCHandler } from "@orpc/server/fetch";
2+
import { createContext } from "@qibla/api/context";
3+
import { appRouter } from "@qibla/api/router";
4+
import { createFileRoute } from "@tanstack/react-router";
55

6-
const rpc = new RPCHandler(appRouter)
6+
const rpc = new RPCHandler(appRouter);
77

88
async function handle({ request }: { request: Request }) {
9-
const context = await createContext(request)
9+
const context = await createContext(request);
1010
const { matched, response } = await rpc.handle(request, {
1111
prefix: "/api/rpc",
1212
context,
13-
})
14-
if (matched) return response
15-
return new Response("Not found", { status: 404 })
13+
});
14+
if (matched) return response;
15+
return new Response("Not found", { status: 404 });
1616
}
1717

1818
export const Route = createFileRoute("/api/rpc/$")({
@@ -22,4 +22,4 @@ export const Route = createFileRoute("/api/rpc/$")({
2222
POST: handle,
2323
},
2424
},
25-
})
25+
});

apps/mobile/app.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ExpoConfig } from "expo/config"
1+
import type { ExpoConfig } from "expo/config";
22

33
const config: ExpoConfig = {
44
name: "Qibla",
@@ -81,6 +81,6 @@ const config: ExpoConfig = {
8181
reactCompiler: true,
8282
autolinkingModuleResolution: true,
8383
},
84-
}
84+
};
8585

86-
export default config
86+
export default config;

apps/mobile/app/(auth)/_layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Stack } from "expo-router"
1+
import { Stack } from "expo-router";
22

33
export default function AuthLayout() {
4-
return <Stack screenOptions={{ headerShown: false }} />
4+
return <Stack screenOptions={{ headerShown: false }} />;
55
}

apps/mobile/app/(auth)/sign-in.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { SignInScreen } from "@/features/auth"
1+
import { SignInScreen } from "@/features/auth";
22

3-
export default SignInScreen
3+
export default SignInScreen;

apps/mobile/app/(tabs)/_layout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { Icon, type IconName } from "@/components/ui/icon"
2-
import { usePrayerReminderSync } from "@/features/settings"
3-
import { Tabs } from "expo-router"
1+
import { Tabs } from "expo-router";
2+
import { Icon, type IconName } from "@/components/ui/icon";
3+
import { usePrayerReminderSync } from "@/features/settings";
44

55
function TabIcon({ name, color }: { name: IconName; color: string }) {
6-
return <Icon name={name} size={22} color={color} />
6+
return <Icon name={name} size={22} color={color} />;
77
}
88

99
export default function TabsLayout() {
10-
usePrayerReminderSync()
10+
usePrayerReminderSync();
1111

1212
return (
1313
<Tabs
@@ -45,5 +45,5 @@ export default function TabsLayout() {
4545
}}
4646
/>
4747
</Tabs>
48-
)
48+
);
4949
}

0 commit comments

Comments
 (0)