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

+3 -1
View File
@@ -315,7 +315,9 @@ describe("verb helpers", () => {
await apiPost(
"/api/foo",
{ a: 1 },
{ headers: new Headers({ "Content-Type": "application/json-patch+json" }) },
{
headers: new Headers({ "Content-Type": "application/json-patch+json" }),
},
);
const [, init] = fetchMock.mock.calls[0] as [string, RequestInit];
+5 -1
View File
@@ -2,7 +2,11 @@ import { describe, expect, it } from "vitest";
import { readError } from "../read-error";
function makeResponse(body: unknown, status: number, opts?: { invalidJson?: boolean }): Response {
function makeResponse(
body: unknown,
status: number,
opts?: { invalidJson?: boolean },
): Response {
if (opts?.invalidJson) {
return new Response("<<not json>>", {
status,
+1 -5
View File
@@ -58,11 +58,7 @@ export class ApiError extends Error {
/** `meta` object of the error envelope, when the body carried one. */
readonly meta: Record<string, unknown> | undefined;
constructor(
message: string,
status: number,
meta?: Record<string, unknown>,
) {
constructor(message: string, status: number, meta?: Record<string, unknown>) {
super(message);
this.name = "ApiError";
this.status = status;