chore: apply core lint cleanups

This commit is contained in:
Peter Steinberger
2026-04-23 05:28:11 +01:00
parent cc9dcd3d69
commit 596b88986d
41 changed files with 85 additions and 82 deletions

View File

@@ -7,7 +7,11 @@ function parseHexRgb(hex: string): [number, number, number] | null {
if (!/^[0-9a-fA-F]{6}$/.test(h)) {
return null;
}
return [parseInt(h.slice(0, 2), 16), parseInt(h.slice(2, 4), 16), parseInt(h.slice(4, 6), 16)];
return [
Number.parseInt(h.slice(0, 2), 16),
Number.parseInt(h.slice(2, 4), 16),
Number.parseInt(h.slice(4, 6), 16),
];
}
let cachedThemeNoticeColors: {

View File

@@ -219,7 +219,8 @@ function renderDailyChartCompact(
const isSelected = selectedDays.includes(d.date);
const label = formatDayLabel(d.date);
// Shorter label for many days (just day number)
const shortLabel = daily.length > 20 ? String(parseInt(d.date.slice(8), 10)) : label;
const shortLabel =
daily.length > 20 ? String(Number.parseInt(d.date.slice(8), 10)) : label;
const labelClass =
daily.length > 20 ? "daily-bar-label daily-bar-label--compact" : "daily-bar-label";
const segments =