Skip to content

Commit b7b0575

Browse files
style: auto-fix linting issues
1 parent 89b10a3 commit b7b0575

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/api-server.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,15 @@ async function handleRequest(
124124

125125
// Handle auto-generated API routes
126126
const autoRoute = autoGeneratedApiRoutes.find(
127-
(route: { method: string; path: string; handler: (req: http.IncomingMessage, res: http.ServerResponse, markmv: ReturnType<typeof createMarkMv>) => Promise<void> }) => route.method === method && route.path === path
127+
(route: {
128+
method: string;
129+
path: string;
130+
handler: (
131+
req: http.IncomingMessage,
132+
res: http.ServerResponse,
133+
markmv: ReturnType<typeof createMarkMv>
134+
) => Promise<void>;
135+
}) => route.method === method && route.path === path
128136
);
129137

130138
if (autoRoute) {

src/commands/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,18 @@ async function generateIndexFilesJson(options: IndexOptions, directory: string):
184184
organizedFiles: Object.fromEntries(
185185
Array.from(organizedFiles.entries()).map(([key, groupFiles]) => [
186186
key,
187-
groupFiles.map(file => ({
187+
groupFiles.map((file) => ({
188188
path: file.path,
189189
relativePath: file.relativePath,
190190
title: file.metadata.title || file.relativePath,
191-
}))
191+
})),
192192
])
193193
),
194-
files: files.map(file => ({
194+
files: files.map((file) => ({
195195
path: file.path,
196196
relativePath: file.relativePath,
197197
title: file.metadata.title || file.relativePath,
198-
}))
198+
})),
199199
};
200200

201201
console.log(JSON.stringify(jsonOutput, null, 2));

0 commit comments

Comments
 (0)