Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske committed Mar 4, 2025
1 parent addc051 commit 3fe7248
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion apps/server/src/libs/cache/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ export class MemoryCache {
}
}

const cache = new MemoryCache();
const _cache = new MemoryCache();
2 changes: 1 addition & 1 deletion apps/server/src/routes/v1/statusReports/update/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function registerStatusReportUpdateRoutes(api: typeof statusReportsApi) {
)
.all();

if (allInfo && allInfo.page) {
if (allInfo?.page) {
await emailClient.sendStatusReportUpdate({
to: subscribers.map((subscriber) => subscriber.email),
pageTitle: allInfo.page.title,
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/routes/v1/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const isoDate = z.preprocess((val) => {
return new Date(String(val)).toISOString();
}
return new Date().toISOString();
} catch (e) {
} catch (_e) {
throw new ZodError([
{ code: "invalid_date", message: "Invalid date", path: [] },
]);
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/api/checker/cron/10m/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function GET(req: NextRequest) {
try {
await cron({ periodicity: "10m", req });
await cronCompleted();
} catch (error) {
} catch (_error) {
await cronFailed();
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/api/checker/cron/1h/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function GET(req: NextRequest) {
try {
await cron({ periodicity: "1h", req });
await cronCompleted();
} catch (error) {
} catch (_error) {
await cronFailed();
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/api/checker/cron/1m/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function GET(req: NextRequest) {
try {
await cron({ periodicity: "1m", req });
await cronCompleted();
} catch (error) {
} catch (_error) {
await cronFailed();
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/api/checker/cron/30m/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function GET(req: NextRequest) {
try {
await cron({ periodicity: "30m", req });
await cronCompleted();
} catch (error) {
} catch (_error) {
await cronFailed();
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/api/checker/cron/30s/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function GET(req: NextRequest) {
try {
await cron({ periodicity: "30s", req });
await cronCompleted();
} catch (error) {
} catch (_error) {
await cronFailed();
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/api/checker/cron/5m/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function GET(req: NextRequest) {
try {
await cron({ periodicity: "5m", req });
await cronCompleted();
} catch (error) {
} catch (_error) {
await cronFailed();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export function StatusReportButton({ pages }: { pages: Page[] }) {
"mt-2",
)}
>
<Megaphone className="h-4 w-4 mr-1 pb-0.5" />
<Megaphone className="mr-1 h-4 w-4 pb-0.5" />
New Status Report
<span className="h-8 w-px bg-background mx-2" />
<span className="mx-2 h-8 w-px bg-background" />
<ChevronDown className="h-4 w-4" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function SubscribeButton({
) : null}
{isSubscribers ? (
<DropdownMenuItem onClick={() => setShowModal(true)}>
<Mail className="h-4 w-4 mr-2" />
<Mail className="mr-2 h-4 w-4" />
Email
</DropdownMenuItem>
) : null}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/content/article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function Article({ post }: { post: Post }) {
>
{post.author.name}
</Link>
<div className="flex items-center gap-1.5 flex-wrap">
<div className="flex flex-wrap items-center gap-1.5">
<time className="font-mono">{formatDate(post.publishedAt)}</time>
<span className="text-muted-foreground/70">&bull;</span>
<span className="font-mono">{post.readingTime}</span>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/content/changelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { formatDate } from "@/lib/utils";

export function ChangelogCard({ post }: { post: Changelog }) {
return (
<article className="relative mx-auto flex max-w-prose w-full flex-col gap-8">
<article className="relative mx-auto flex w-full max-w-prose flex-col gap-8">
<div className="grid w-full gap-3">
<p className="font-mono text-muted-foreground text-sm">
{formatDate(new Date(post.publishedAt))}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/content/mdx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function Mdx({ code, className }: MdxProps) {
// FIXME: weird behaviour when `prose-headings:font-cal` and on mouse movement font gets bigger
<div
className={cn(
"prose prose-slate dark:prose-invert prose-pre:my-0 prose-img:rounded-lg prose-pre:bg-background prose-pre:rounded-lg prose-img:border prose-pre:border prose-img:border-border prose-pre:border-border prose-headings:font-cal prose-headings:font-normal prose-blockquote:font-light prose-blockquote:border-l-2",
"prose prose-slate dark:prose-invert prose-pre:my-0 prose-img:rounded-lg prose-pre:rounded-lg prose-img:border prose-pre:border prose-img:border-border prose-pre:border-border prose-blockquote:border-l-2 prose-pre:bg-background prose-blockquote:font-light prose-headings:font-cal prose-headings:font-normal",
className,
)}
>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/data-table/status-page/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const columns: ColumnDef<
<span className="group-hover:text-muted-foreground/70">
{formatDate(date)}
</span>
<div className="absolute -inset-x-2 -inset-y-1 invisible group-hover:visible backdrop-blur-sm flex items-center px-2 py-1">
<div className="-inset-x-2 -inset-y-1 invisible absolute flex items-center px-2 py-1 backdrop-blur-sm group-hover:visible">
<Link
href={`./status-pages/${row.original.id}/reports/${lastReport.id}`}
className="hover:underline"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function DataTableRowActions<TData>({
Create an uptime badge for your status page.
</DialogDescription>
<div className="flex items-center justify-center">
<div className="flex items-center justify-center p-4 border rounded-md w-full">
<div className="flex w-full items-center justify-center rounded-md border p-4">
<img
src={`/status-page/${page.slug}/badge?size=${size}&theme=${theme}`}
alt="Badge"
Expand All @@ -175,7 +175,7 @@ export function DataTableRowActions<TData>({
))}
</RadioGroup>
<div>
<span className="text-sm text-muted-foreground font-mono">
<span className="font-mono text-muted-foreground text-sm">
{SIZE[size].width}x{SIZE[size].height}
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/notifications/pagerduty/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export const sendTest = async ({
},
});

const res = await fetch("https://events.pagerduty.com/v2/enqueue", {
const _res = await fetch("https://events.pagerduty.com/v2/enqueue", {
method: "POST",
body: JSON.stringify(event),
});
Expand Down

0 comments on commit 3fe7248

Please sign in to comment.