Skip to content

Commit e218d63

Browse files
committed
Format leaderboard files to satisfy format check
1 parent b17aa6b commit e218d63

File tree

2 files changed

+112
-18
lines changed

2 files changed

+112
-18
lines changed

packages/website/src/app/leaderboard/leaderboard-entries.ts

Lines changed: 111 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,120 @@ const buildShareUrl = (entry: LeaderboardEntry): string => {
2020
};
2121

2222
const RAW_ENTRIES: LeaderboardEntry[] = [
23-
{ name: "tldraw", githubUrl: "https://github.com/tldraw/tldraw", packageName: "tldraw", score: 84, errorCount: 98, warningCount: 139, fileCount: 40 },
24-
{ name: "excalidraw", githubUrl: "https://github.com/excalidraw/excalidraw", packageName: "@excalidraw/excalidraw", score: 84, errorCount: 2, warningCount: 196, fileCount: 80 },
25-
{ name: "twenty", githubUrl: "https://github.com/twentyhq/twenty", packageName: "twenty-front", score: 78, errorCount: 99, warningCount: 293, fileCount: 268 },
26-
{ name: "plane", githubUrl: "https://github.com/makeplane/plane", packageName: "web", score: 78, errorCount: 7, warningCount: 525, fileCount: 292 },
27-
{ name: "formbricks", githubUrl: "https://github.com/formbricks/formbricks", packageName: "@formbricks/web", score: 75, errorCount: 15, warningCount: 389, fileCount: 242 },
28-
{ name: "posthog", githubUrl: "https://github.com/PostHog/posthog", packageName: "@posthog/frontend", score: 72, errorCount: 82, warningCount: 1177, fileCount: 585 },
29-
{ name: "supabase", githubUrl: "https://github.com/supabase/supabase", packageName: "studio", score: 69, errorCount: 74, warningCount: 1087, fileCount: 566 },
30-
{ name: "onlook", githubUrl: "https://github.com/onlook-dev/onlook", packageName: "@onlook/web-client", score: 69, errorCount: 64, warningCount: 418, fileCount: 178 },
31-
{ name: "payload", githubUrl: "https://github.com/payloadcms/payload", packageName: "@payloadcms/ui", score: 68, errorCount: 139, warningCount: 408, fileCount: 298 },
32-
{ name: "sentry", githubUrl: "https://github.com/getsentry/sentry", packageName: "sentry", score: 64, errorCount: 94, warningCount: 1345, fileCount: 818 },
33-
{ name: "cal.com", githubUrl: "https://github.com/calcom/cal.com", packageName: "@calcom/web", score: 63, errorCount: 31, warningCount: 558, fileCount: 311 },
34-
{ name: "dub", githubUrl: "https://github.com/dubinc/dub", packageName: "web", score: 62, errorCount: 52, warningCount: 966, fileCount: 457 },
23+
{
24+
name: "tldraw",
25+
githubUrl: "https://github.com/tldraw/tldraw",
26+
packageName: "tldraw",
27+
score: 84,
28+
errorCount: 98,
29+
warningCount: 139,
30+
fileCount: 40,
31+
},
32+
{
33+
name: "excalidraw",
34+
githubUrl: "https://github.com/excalidraw/excalidraw",
35+
packageName: "@excalidraw/excalidraw",
36+
score: 84,
37+
errorCount: 2,
38+
warningCount: 196,
39+
fileCount: 80,
40+
},
41+
{
42+
name: "twenty",
43+
githubUrl: "https://github.com/twentyhq/twenty",
44+
packageName: "twenty-front",
45+
score: 78,
46+
errorCount: 99,
47+
warningCount: 293,
48+
fileCount: 268,
49+
},
50+
{
51+
name: "plane",
52+
githubUrl: "https://github.com/makeplane/plane",
53+
packageName: "web",
54+
score: 78,
55+
errorCount: 7,
56+
warningCount: 525,
57+
fileCount: 292,
58+
},
59+
{
60+
name: "formbricks",
61+
githubUrl: "https://github.com/formbricks/formbricks",
62+
packageName: "@formbricks/web",
63+
score: 75,
64+
errorCount: 15,
65+
warningCount: 389,
66+
fileCount: 242,
67+
},
68+
{
69+
name: "posthog",
70+
githubUrl: "https://github.com/PostHog/posthog",
71+
packageName: "@posthog/frontend",
72+
score: 72,
73+
errorCount: 82,
74+
warningCount: 1177,
75+
fileCount: 585,
76+
},
77+
{
78+
name: "supabase",
79+
githubUrl: "https://github.com/supabase/supabase",
80+
packageName: "studio",
81+
score: 69,
82+
errorCount: 74,
83+
warningCount: 1087,
84+
fileCount: 566,
85+
},
86+
{
87+
name: "onlook",
88+
githubUrl: "https://github.com/onlook-dev/onlook",
89+
packageName: "@onlook/web-client",
90+
score: 69,
91+
errorCount: 64,
92+
warningCount: 418,
93+
fileCount: 178,
94+
},
95+
{
96+
name: "payload",
97+
githubUrl: "https://github.com/payloadcms/payload",
98+
packageName: "@payloadcms/ui",
99+
score: 68,
100+
errorCount: 139,
101+
warningCount: 408,
102+
fileCount: 298,
103+
},
104+
{
105+
name: "sentry",
106+
githubUrl: "https://github.com/getsentry/sentry",
107+
packageName: "sentry",
108+
score: 64,
109+
errorCount: 94,
110+
warningCount: 1345,
111+
fileCount: 818,
112+
},
113+
{
114+
name: "cal.com",
115+
githubUrl: "https://github.com/calcom/cal.com",
116+
packageName: "@calcom/web",
117+
score: 63,
118+
errorCount: 31,
119+
warningCount: 558,
120+
fileCount: 311,
121+
},
122+
{
123+
name: "dub",
124+
githubUrl: "https://github.com/dubinc/dub",
125+
packageName: "web",
126+
score: 62,
127+
errorCount: 52,
128+
warningCount: 966,
129+
fileCount: 457,
130+
},
35131
];
36132

37133
export interface ResolvedLeaderboardEntry extends LeaderboardEntry {
38134
shareUrl: string;
39135
}
40136

41-
export const LEADERBOARD_ENTRIES: ResolvedLeaderboardEntry[] = RAW_ENTRIES
42-
.sort((entryA, entryB) => entryB.score - entryA.score)
43-
.map((entry) => ({ ...entry, shareUrl: buildShareUrl(entry) }));
137+
export const LEADERBOARD_ENTRIES: ResolvedLeaderboardEntry[] = RAW_ENTRIES.sort(
138+
(entryA, entryB) => entryB.score - entryA.score,
139+
).map((entry) => ({ ...entry, shareUrl: buildShareUrl(entry) }));

packages/website/src/app/leaderboard/page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ const LeaderboardPage = () => {
120120
>
121121
Add your project
122122
</a>
123-
<span className="text-neutral-600">
124-
{" — open a PR to leaderboard-entries.ts"}
125-
</span>
123+
<span className="text-neutral-600">{" — open a PR to leaderboard-entries.ts"}</span>
126124
</div>
127125
</div>
128126
);

0 commit comments

Comments
 (0)