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

@@ -186,9 +186,7 @@ describe("POST /api/user/avatar", () => {
// Plain text content — no JPEG/PNG/WebP magic.
const notAnImage = Buffer.from("hello, world — definitely not an image");
const res = await post(
mkUpload(notAnImage, "avatar.png", "image/png"),
);
const res = await post(mkUpload(notAnImage, "avatar.png", "image/png"));
expect(res.status).toBe(415);
expect(prisma.user.update).not.toHaveBeenCalled();
});
+4 -16
View File
@@ -149,10 +149,7 @@ export const POST = apiHandler(async (request: Request) => {
action: { name: "user.avatar.upload.rejected" },
meta: { reason: "content_length_exceeded", contentLength },
});
return apiError(
`Upload exceeds ${AVATAR_MAX_BYTES} byte limit`,
413,
);
return apiError(`Upload exceeds ${AVATAR_MAX_BYTES} byte limit`, 413);
}
// Stream-level cap. The Content-Length pre-flight above only fires when
@@ -196,10 +193,7 @@ export const POST = apiHandler(async (request: Request) => {
action: { name: "user.avatar.upload.rejected" },
meta: { reason: "file_size_exceeded", size: file.size },
});
return apiError(
`Upload exceeds ${AVATAR_MAX_BYTES} byte limit`,
413,
);
return apiError(`Upload exceeds ${AVATAR_MAX_BYTES} byte limit`, 413);
}
let buffer: Buffer;
@@ -218,10 +212,7 @@ export const POST = apiHandler(async (request: Request) => {
action: { name: "user.avatar.upload.rejected" },
meta: { reason: "unsupported_mime" },
});
return apiError(
"Unsupported image type. Use JPEG, PNG, or WebP.",
415,
);
return apiError("Unsupported image type. Use JPEG, PNG, or WebP.", 415);
}
const dimensions = readAvatarDimensions(buffer, sniffed);
@@ -242,10 +233,7 @@ export const POST = apiHandler(async (request: Request) => {
height: dimensions.height,
},
});
return apiError(
`Image exceeds the 2048×2048 dimension limit`,
413,
);
return apiError(`Image exceeds the 2048×2048 dimension limit`, 413);
}
const updatedAt = new Date();