mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 22:02:16 +00:00
chore(style): repo-wide prettier sweep before v1.4.6 tag
Long-overdue prettier sweep; prettier had drifted vs. checked-in code across ~130 files (mostly long-argument line-break wrapping in TS and table-padding in markdown). Pure formatting — no semantic changes — and required to clear the v1.4.6 release gate's `pnpm format:check`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
67575180b8
commit
02b99553b9
135 files changed
+2159
-1583
No files matched your search
@@ -12,7 +12,10 @@ export const registerSchema = z.object({
|
||||
.regex(/^[a-zA-Z0-9_-]+$/, "Only letters, numbers, _ and -"),
|
||||
password: z
|
||||
.string()
|
||||
.min(PASSWORD_MIN_LENGTH, `Password must be at least ${PASSWORD_MIN_LENGTH} characters`),
|
||||
.min(
|
||||
PASSWORD_MIN_LENGTH,
|
||||
`Password must be at least ${PASSWORD_MIN_LENGTH} characters`,
|
||||
),
|
||||
});
|
||||
|
||||
export const loginPasswordSchema = z.object({
|
||||
@@ -32,7 +35,10 @@ export const changePasswordSchema = z
|
||||
currentPassword: z.string().min(1, "Current password is required"),
|
||||
newPassword: z
|
||||
.string()
|
||||
.min(PASSWORD_MIN_LENGTH, `New password must be at least ${PASSWORD_MIN_LENGTH} characters`),
|
||||
.min(
|
||||
PASSWORD_MIN_LENGTH,
|
||||
`New password must be at least ${PASSWORD_MIN_LENGTH} characters`,
|
||||
),
|
||||
confirmPassword: z.string().min(1, "Password confirmation is required"),
|
||||
})
|
||||
.refine((data) => data.newPassword === data.confirmPassword, {
|
||||
|
||||
@@ -27,7 +27,10 @@ export const createFeedbackSchema = z.object({
|
||||
screenshot: z
|
||||
.string()
|
||||
.max(7_000_000, "Screenshot too large (max 5 MB)")
|
||||
.regex(SCREENSHOT_DATA_URL, "Screenshot must be a base64-encoded PNG/JPEG/WEBP/GIF data URL")
|
||||
.regex(
|
||||
SCREENSHOT_DATA_URL,
|
||||
"Screenshot must be a base64-encoded PNG/JPEG/WEBP/GIF data URL",
|
||||
)
|
||||
.optional(),
|
||||
metadata: z.record(z.string(), z.unknown()).optional(),
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
import { z } from "zod/v4";
|
||||
import { METRIC_BOUNDS, type ThresholdMetric } from "@/lib/analytics/effective-range";
|
||||
import {
|
||||
METRIC_BOUNDS,
|
||||
type ThresholdMetric,
|
||||
} from "@/lib/analytics/effective-range";
|
||||
|
||||
const metricKeys = Object.keys(METRIC_BOUNDS) as ThresholdMetric[];
|
||||
|
||||
|
||||
Reference in new issue
Block a user