Skip to content

Commit f52c73c

Browse files
committed
fix: lint
1 parent ad924d4 commit f52c73c

3 files changed

Lines changed: 12 additions & 15 deletions

File tree

website/src/App.tsx

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,15 @@ export default function App() {
172172
className="inline-flex h-9 w-9 items-center justify-center rounded-full border border-border/40 bg-white/5 text-white/80 transition hover:bg-white/10 hover:text-white"
173173
aria-label="Open GitHub repository"
174174
>
175+
<span className="sr-only">GitHub</span>
175176
<svg
176-
aria-hidden
177+
aria-hidden="true"
177178
viewBox="0 0 24 24"
178179
className="h-5 w-5"
179180
fill="currentColor"
181+
role="img"
180182
>
183+
<title>GitHub</title>
181184
<path d="M12 0C5.37 0 0 5.48 0 12.24c0 5.41 3.44 9.99 8.2 11.61.6.12.82-.27.82-.59 0-.29-.01-1.05-.02-2.05-3.34.75-4.04-1.65-4.04-1.65-.55-1.43-1.35-1.81-1.35-1.81-1.1-.77.08-.75.08-.75 1.22.09 1.86 1.28 1.86 1.28 1.08 1.9 2.83 1.35 3.52 1.03.11-.81.42-1.35.76-1.66-2.67-.31-5.47-1.37-5.47-6.12 0-1.35.47-2.45 1.24-3.31-.13-.31-.54-1.56.12-3.26 0 0 1-.33 3.3 1.26a11.1 11.1 0 0 1 3-.41c1.02 0 2.05.14 3 .41 2.3-1.59 3.3-1.26 3.3-1.26.66 1.7.25 2.95.12 3.26.77.86 1.24 1.96 1.24 3.31 0 4.76-2.8 5.8-5.48 6.11.43.39.81 1.17.81 2.36 0 1.7-.02 3.07-.02 3.48 0 .32.22.71.82.59C20.56 22.23 24 17.65 24 12.24 24 5.48 18.63 0 12 0Z" />
182185
</svg>
183186
</a>
@@ -192,11 +195,13 @@ export default function App() {
192195
>
193196
Rstack
194197
<svg
195-
aria-hidden
198+
aria-hidden="true"
196199
viewBox="0 0 12 12"
197200
className={`h-3 w-3 transition-transform ${isRepoMenuOpen ? 'rotate-180' : ''}`}
198201
fill="none"
202+
role="img"
199203
>
204+
<title>Toggle menu</title>
200205
<path
201206
d="M2.2 4.2 6 8l3.8-3.8"
202207
stroke="currentColor"
@@ -264,12 +269,8 @@ export default function App() {
264269
</div>
265270
</header>
266271

267-
<section className="grid gap-4 sm:grid-cols-3">
272+
<section className="grid gap-4 sm:grid-cols-2">
268273
<StatCard label="Total tracked runs" value={stats.total} />
269-
<StatCard
270-
label="Pass ratio"
271-
value={stats.total ? `${Math.round(stats.passRate * 100)}%` : '—'}
272-
/>
273274
<StatCard label="Last updated" value={stats.lastUpdated ?? '—'} />
274275
</section>
275276

@@ -287,15 +288,11 @@ function buildStats(records: EcosystemCommitRecord[]) {
287288
if (!records.length) {
288289
return {
289290
total: 0,
290-
passRate: 0,
291291
lastUpdated: null as string | null,
292292
};
293293
}
294294

295295
const total = records.length;
296-
const passed = records.filter(
297-
(record) => record.overallStatus === 'success',
298-
).length;
299296
const lastUpdated = records[0]?.commitTimestamp
300297
? (() => {
301298
const date = new Date(records[0].commitTimestamp);
@@ -314,7 +311,6 @@ function buildStats(records: EcosystemCommitRecord[]) {
314311

315312
return {
316313
total,
317-
passRate: total > 0 ? passed / total : 0,
318314
lastUpdated,
319315
};
320316
}

website/src/components/timeline.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ export function Timeline({
155155
const isRenovateBot = entry.author?.login === 'renovate[bot]';
156156
const avatarUrl = isRenovateBot
157157
? 'https://avatars.githubusercontent.com/in/2740?s=80&v=4'
158-
: entry.author?.avatarUrl ??
158+
: (entry.author?.avatarUrl ??
159159
(entry.author?.login
160160
? `https://github.com/${entry.author.login}.png`
161-
: null);
161+
: null));
162162

163163
return (
164164
<div

website/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"@/*": ["src/*"]
1111
},
1212
"types": ["node"],
13-
"noEmit": true
13+
"noEmit": true,
14+
"skipLibCheck": true
1415
},
1516
"include": [
1617
"rsbuild.config.ts",

0 commit comments

Comments
 (0)