style: apply prettier across the tree

One-shot prettier pass so the new format:check gate starts from a clean
baseline. Formatting only — no behaviour change. Generator-owned and
vendored artifacts stay untouched via .prettierignore.
This commit is contained in:
Marc-André Bombeck committed 2026-06-19 22:20:31 +02:00
1 parent b3fea2ef59
commit 1f4ba5939d
1000 files changed
+12130 -8385

No files matched your search

@@ -198,9 +198,7 @@ describe("pickCanonicalWorkout — determinism", () => {
row("apple-1", "APPLE_HEALTH", "2026-05-14T07:30:00.000Z"),
row("withings-1", "WITHINGS", "2026-05-14T07:31:00.000Z"),
]);
expect(a.canonical.map((r) => r.id)).toEqual(
b.canonical.map((r) => r.id),
);
expect(a.canonical.map((r) => r.id)).toEqual(b.canonical.map((r) => r.id));
});
it("breaks same-timestamp ties via id ordering", () => {
@@ -124,12 +124,7 @@ describe("cross-source priority — Withings Activity + Apple Health", () => {
const userPriority = {
steps: ["WITHINGS", "APPLE_HEALTH", "MANUAL"],
};
const out = pickCanonicalSourceRows(
rows,
"steps",
userPriority,
isoDayKey,
);
const out = pickCanonicalSourceRows(rows, "steps", userPriority, isoDayKey);
expect(out.canonicalRows).toHaveLength(1);
expect(out.canonicalRows[0].source).toBe("WITHINGS");
expect(out.canonicalRows[0].value).toBe(5000);
+1 -2
View File
@@ -152,8 +152,7 @@ export function pickCanonicalWorkout<T extends WorkoutPickerRow>(
return { canonical: [], clusters: [] };
}
const ladder =
options.sourcePriority ?? DEFAULT_WORKOUT_SOURCE_PRIORITY;
const ladder = options.sourcePriority ?? DEFAULT_WORKOUT_SOURCE_PRIORITY;
const proximityMinutes =
options.proximityMinutes ?? DEFAULT_WORKOUT_PROXIMITY_MINUTES;
const proximityMs = proximityMinutes * 60_000;