Skip to content

Commit 49de05c

Browse files
committed
lint
1 parent 810e941 commit 49de05c

File tree

4 files changed

+304
-305
lines changed

4 files changed

+304
-305
lines changed

apps/dashboard/components/feature-gate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
} from "@phosphor-icons/react";
1717
import Link from "next/link";
1818
import type { ReactNode } from "react";
19-
import { useBillingContext } from "@/components/providers/billing-provider";
19+
import { useBillingContext } from "@/components/providers/billing-provider";
2020
import { Button } from "@/components/ui/button";
2121
import { Card, CardContent, CardHeader } from "@/components/ui/card";
2222
import { cn } from "@/lib/utils";

apps/dashboard/hooks/use-smart-insights.ts

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,45 @@ import { useQuery } from "@tanstack/react-query";
44
import { orpc } from "@/lib/orpc";
55

66
export type InsightType =
7-
| "error_spike"
8-
| "vitals_degraded"
9-
| "custom_event_spike"
10-
| "traffic_drop"
11-
| "traffic_spike"
12-
| "uptime_issue";
7+
| "error_spike"
8+
| "vitals_degraded"
9+
| "custom_event_spike"
10+
| "traffic_drop"
11+
| "traffic_spike"
12+
| "uptime_issue";
1313

1414
export type InsightSeverity = "critical" | "warning" | "info";
1515

1616
export interface Insight {
17-
id: string;
18-
type: InsightType;
19-
severity: InsightSeverity;
20-
websiteId: string;
21-
websiteName: string | null;
22-
websiteDomain: string;
23-
title: string;
24-
description: string;
25-
metric?: string;
26-
currentValue?: number;
27-
previousValue?: number;
28-
changePercent?: number;
29-
link: string;
17+
id: string;
18+
type: InsightType;
19+
severity: InsightSeverity;
20+
websiteId: string;
21+
websiteName: string | null;
22+
websiteDomain: string;
23+
title: string;
24+
description: string;
25+
metric?: string;
26+
currentValue?: number;
27+
previousValue?: number;
28+
changePercent?: number;
29+
link: string;
3030
}
3131

3232
export function useSmartInsights() {
33-
const query = useQuery({
34-
...orpc.insights.getSmartInsights.queryOptions({
35-
input: undefined,
36-
}),
37-
staleTime: 5 * 60 * 1000,
38-
refetchInterval: 5 * 60 * 1000,
39-
});
33+
const query = useQuery({
34+
...orpc.insights.getSmartInsights.queryOptions({
35+
input: undefined,
36+
}),
37+
staleTime: 5 * 60 * 1000,
38+
refetchInterval: 5 * 60 * 1000,
39+
});
4040

41-
return {
42-
insights: (query.data?.insights ?? []) as Insight[],
43-
isLoading: query.isLoading,
44-
isFetching: query.isFetching,
45-
isError: query.isError,
46-
refetch: query.refetch,
47-
};
41+
return {
42+
insights: (query.data?.insights ?? []) as Insight[],
43+
isLoading: query.isLoading,
44+
isFetching: query.isFetching,
45+
isError: query.isError,
46+
refetch: query.refetch,
47+
};
4848
}
49-

packages/rpc/src/routers/flags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function sanitizeFlagForDemo<T extends FlagWithTargetGroups>(flag: T): T {
226226
...flag,
227227
rules: Array.isArray(flag.rules) && flag.rules.length > 0 ? [] : flag.rules,
228228
targetGroups: flag.targetGroups?.map(
229-
(group: { rules?: unknown;[key: string]: unknown }) => ({
229+
(group: { rules?: unknown; [key: string]: unknown }) => ({
230230
...group,
231231
rules:
232232
Array.isArray(group.rules) && group.rules.length > 0

0 commit comments

Comments
 (0)