Skip to content

Commit 6e29498

Browse files
NiallJoeMaherclaude
andcommitted
style: prettier-format the relaunch + restore load-bearing eslint-disable
Run prettier --write across the relaunch/handoff-#5/fix changes (the format check was failing CI), auto-remove genuinely-unused eslint-disable directives, and restore the one disable lint:fix wrongly stripped (the synchronous setSelectedIndex in slash-command's useLayoutEffect). eslint 0 errors, prettier check passes, tsc clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent efd279d commit 6e29498

81 files changed

Lines changed: 2826 additions & 7597 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.

‎app/(app)/[username]/[slug]/_feedArticleContent.tsx‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ const FeedArticleContent = ({ sourceSlug, articleSlug }: Props) => {
234234
className="h-11 w-11 rounded-full border border-hairline"
235235
/>
236236
) : (
237-
<div className="flex h-11 w-11 items-center justify-center rounded-full bg-accent/12 text-sm font-bold text-accent">
237+
<div className="bg-accent/12 flex h-11 w-11 items-center justify-center rounded-full text-sm font-bold text-accent">
238238
{article.source?.name?.charAt(0).toUpperCase() || "?"}
239239
</div>
240240
)}
@@ -308,7 +308,7 @@ const FeedArticleContent = ({ sourceSlug, articleSlug }: Props) => {
308308
) : faviconUrl ? (
309309
<img src={faviconUrl} alt="" className="h-8 w-8 rounded-full" />
310310
) : (
311-
<div className="flex h-8 w-8 items-center justify-center rounded-full bg-accent/12 text-sm font-bold text-accent">
311+
<div className="bg-accent/12 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold text-accent">
312312
{article.source.name?.charAt(0).toUpperCase() || "?"}
313313
</div>
314314
)}
@@ -321,7 +321,9 @@ const FeedArticleContent = ({ sourceSlug, articleSlug }: Props) => {
321321
>
322322
{article.source.name}
323323
</Link>
324-
<span className="font-mono text-xs text-faint">@{sourceSlug}</span>
324+
<span className="font-mono text-xs text-faint">
325+
@{sourceSlug}
326+
</span>
325327
</div>
326328
{article.source.description && (
327329
<p className="truncate text-sm text-muted">
@@ -403,10 +405,7 @@ const FeedArticleContent = ({ sourceSlug, articleSlug }: Props) => {
403405
</button>
404406
</footer>
405407

406-
<section
407-
id="discussion"
408-
className="mt-10 border-t border-hairline pt-8"
409-
>
408+
<section id="discussion" className="mt-10 border-t border-hairline pt-8">
410409
<h2 className="mb-4 font-display text-2xl font-extrabold tracking-tight text-fg">
411410
Discussion{" "}
412411
<span className="font-sans font-medium text-faint">

‎app/(app)/[username]/[slug]/_linkContentDetail.tsx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ const LinkContentDetail = ({ sourceSlug, contentSlug }: Props) => {
236236
className="h-11 w-11 rounded-full border border-hairline"
237237
/>
238238
) : (
239-
<div className="flex h-11 w-11 items-center justify-center rounded-full bg-accent/12 text-sm font-bold text-accent">
239+
<div className="bg-accent/12 flex h-11 w-11 items-center justify-center rounded-full text-sm font-bold text-accent">
240240
{linkContent.source?.name?.charAt(0).toUpperCase() || "?"}
241241
</div>
242242
)}
@@ -306,7 +306,7 @@ const LinkContentDetail = ({ sourceSlug, contentSlug }: Props) => {
306306
) : faviconUrl ? (
307307
<img src={faviconUrl} alt="" className="h-8 w-8 rounded-full" />
308308
) : (
309-
<div className="flex h-8 w-8 items-center justify-center rounded-full bg-accent/12 text-sm font-bold text-accent">
309+
<div className="bg-accent/12 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold text-accent">
310310
{linkContent.source.name?.charAt(0).toUpperCase() || "?"}
311311
</div>
312312
)}
@@ -319,7 +319,9 @@ const LinkContentDetail = ({ sourceSlug, contentSlug }: Props) => {
319319
>
320320
{linkContent.source.name}
321321
</Link>
322-
<span className="font-mono text-xs text-faint">@{sourceSlug}</span>
322+
<span className="font-mono text-xs text-faint">
323+
@{sourceSlug}
324+
</span>
323325
</div>
324326
{linkContent.source.description && (
325327
<p className="truncate text-sm text-muted">

‎app/(app)/[username]/[slug]/_userLinkDetail.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const UserLinkDetail = ({ username, contentSlug }: Props) => {
216216
className="h-11 w-11 rounded-full border border-hairline object-cover"
217217
/>
218218
) : (
219-
<div className="flex h-11 w-11 items-center justify-center rounded-full bg-accent/12 text-sm font-bold text-accent">
219+
<div className="bg-accent/12 flex h-11 w-11 items-center justify-center rounded-full text-sm font-bold text-accent">
220220
{linkContent.author?.name?.charAt(0).toUpperCase() || "?"}
221221
</div>
222222
)}

‎app/(app)/[username]/[slug]/page.tsx‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@ async function getUserPost(username: string, postSlug: string) {
8282
eq(posts.status, "published"),
8383
// Text-content kinds all render via the article reader (title + body +
8484
// discussion). Links have their own resolver below.
85-
inArray(posts.type, ["article", "discussion", "question", "til", "resource"]),
85+
inArray(posts.type, [
86+
"article",
87+
"discussion",
88+
"question",
89+
"til",
90+
"resource",
91+
]),
8692
lte(posts.publishedAt, new Date().toISOString()),
8793
),
8894
)

‎app/(app)/[username]/_sourceProfileClient.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const SourceProfileContent = ({ sourceSlug }: Props) => {
7474
if (status === "error" || !pub) {
7575
return (
7676
<div className="mx-auto max-w-2xl px-4 py-8 text-fg">
77-
<div className="rounded-lg border border-danger/30 bg-danger/12 p-6 text-center">
77+
<div className="bg-danger/12 rounded-lg border border-danger/30 p-6 text-center">
7878
<h1 className="text-lg font-semibold text-danger">
7979
Publication Not Found
8080
</h1>

‎app/(app)/admin/_client.tsx‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ import {
1111
} from "@heroicons/react/24/outline";
1212
import { api } from "@/server/trpc/react";
1313

14-
type StatTone = "accent" | "success" | "warning" | "danger" | "info" | "neutral";
14+
type StatTone =
15+
| "accent"
16+
| "success"
17+
| "warning"
18+
| "danger"
19+
| "info"
20+
| "neutral";
1521

1622
const toneClasses: Record<StatTone, string> = {
1723
accent: "bg-accent/10 text-accent",

‎app/(app)/admin/tags/_client.tsx‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@ const TagsAdmin = () => {
354354
</span>
355355
</div>
356356
) : (
357-
<span className="text-faint">Click a tag below to select</span>
357+
<span className="text-faint">
358+
Click a tag below to select
359+
</span>
358360
)}
359361
</div>
360362
</div>
@@ -374,7 +376,9 @@ const TagsAdmin = () => {
374376
</span>
375377
</div>
376378
) : (
377-
<span className="text-faint">Click a tag below to select</span>
379+
<span className="text-faint">
380+
Click a tag below to select
381+
</span>
378382
)}
379383
</div>
380384
</div>
@@ -404,11 +408,7 @@ const TagsAdmin = () => {
404408
</div>
405409
<button
406410
onClick={() => setShowMergePanel(!showMergePanel)}
407-
className={
408-
showMergePanel
409-
? "primary-button"
410-
: "secondary-button"
411-
}
411+
className={showMergePanel ? "primary-button" : "secondary-button"}
412412
>
413413
<ArrowsRightLeftIcon className="h-5 w-5" />
414414
Merge Mode

‎app/(app)/admin/users/_client.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const UserManagement = () => {
200200
</span>
201201
)}
202202
{"isBanned" in user && user.isBanned && (
203-
<span className="rounded bg-danger/12 px-1.5 py-0.5 font-mono text-xs uppercase tracking-label text-danger">
203+
<span className="bg-danger/12 rounded px-1.5 py-0.5 font-mono text-xs uppercase tracking-label text-danger">
204204
Banned
205205
</span>
206206
)}

‎app/(app)/code-of-conduct/page.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ const CodeOfConduct = () => {
107107
applies when an individual is officially representing the community in
108108
public spaces. Examples of representing our community include using an
109109
official e-mail address, posting via an official social media account,
110-
or acting as an appointed representative at an online or offline event.
110+
or acting as an appointed representative at an online or offline
111+
event.
111112
</p>
112113

113114
<h2 className="mb-4 mt-12 text-xl font-semibold leading-6 tracking-wide text-fg">

‎app/(app)/draft/[id]/page.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const PreviewPage = async (props: Props) => {
5050
return (
5151
<div className="mx-auto max-w-3xl px-4 py-8">
5252
<nav className="mb-6 flex items-center gap-2 text-sm">
53-
<span className="bg-accent/15 rounded-full px-3 py-1 font-medium text-accent">
53+
<span className="rounded-full bg-accent/15 px-3 py-1 font-medium text-accent">
5454
Draft Preview
5555
</span>
5656
</nav>
@@ -69,7 +69,7 @@ const PreviewPage = async (props: Props) => {
6969
className="h-5 w-5 rounded-full object-cover"
7070
/>
7171
) : (
72-
<div className="bg-accent/15 flex h-5 w-5 items-center justify-center rounded-full text-xs font-bold text-accent">
72+
<div className="flex h-5 w-5 items-center justify-center rounded-full bg-accent/15 text-xs font-bold text-accent">
7373
{post.user.name?.charAt(0).toUpperCase() || "?"}
7474
</div>
7575
)}

0 commit comments

Comments
 (0)