style: apply prettier 3.9.1 formatting

Mechanical reflow from the prettier 3.9.1 bump; no behaviour change.
This commit is contained in:
Marc-André Bombeck committed 2026-06-28 19:26:16 +02:00
1 parent 6329540ade
commit 0f2b548138
90 files changed
+123 -406

No files matched your search

+3 -6
View File
@@ -494,8 +494,7 @@ export function resolveVerticalMarkerPositions(
export function resolveAnnotationPositions(
annotations:
| Array<{ date: string; label: string; color: string }>
| undefined,
Array<{ date: string; label: string; color: string }> | undefined,
chartData: Array<{ timestamp: number }> | undefined,
): ResolvedAnnotation[] {
if (!annotations || !chartData || chartData.length === 0) return [];
@@ -2021,8 +2020,7 @@ export function HealthChart({
// current ↔ compare values come from the SAME
// payload object.
const hoverPoint = payload[0]?.payload as
| ChartDataPoint
| undefined;
ChartDataPoint | undefined;
for (const item of payload) {
if (typeof item.value !== "number") continue;
const dataKey = String(item.dataKey ?? "");
@@ -2047,8 +2045,7 @@ export function HealthChart({
const compareValue =
effectiveCompareBaseline !== "none" && hoverPoint
? (hoverPoint[`${dataKey}_compare`] as
| number
| undefined)
number | undefined)
: undefined;
if (
effectiveCompareBaseline !== "none" &&
+1 -2
View File
@@ -840,8 +840,7 @@ export function MoodChart({
const dateLabel = ts ? tzFmt.date(new Date(ts)) : "";
const rows: RichTooltipRow[] = [];
const hoverPoint = payload[0]?.payload as
| ChartDataPoint
| undefined;
ChartDataPoint | undefined;
for (const item of payload) {
if (typeof item.value !== "number") continue;
const dataKey = String(item.dataKey ?? "");