MAESTRO: Fix linting config and formatting

This commit is contained in:
Mariusz Banach
2026-02-17 23:18:10 +01:00
parent 49d374d3c4
commit 0d816aaa40
9 changed files with 31 additions and 26 deletions

View File

@@ -24,11 +24,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
</body>
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>{children}</body>
</html>
);
}

View File

@@ -74,9 +74,9 @@ describe("api client", () => {
const stream = new ReadableStream<Uint8Array>({
start(controller) {
controller.enqueue(encoder.encode("event: progress\n"));
controller.enqueue(encoder.encode("data: {\"step\": 1}\n\n"));
controller.enqueue(encoder.encode('data: {"step": 1}\n\n'));
controller.enqueue(encoder.encode("event: result\n"));
controller.enqueue(encoder.encode("data: {\"done\": true}\n\n"));
controller.enqueue(encoder.encode('data: {"done": true}\n\n'));
controller.close();
},
});

View File

@@ -42,10 +42,7 @@ export interface ApiClient {
request<TResponse>(path: string, init?: RequestInit & { body?: unknown }): Promise<TResponse>;
get<TResponse>(path: string, init?: RequestInit): Promise<TResponse>;
post<TResponse, TBody>(path: string, body: TBody, init?: RequestInit): Promise<TResponse>;
stream<TBody, TEvent>(
path: string,
options: StreamRequestOptions<TBody, TEvent>,
): Promise<void>;
stream<TBody, TEvent>(path: string, options: StreamRequestOptions<TBody, TEvent>): Promise<void>;
}
type Fetcher = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;