From a5ddf7d5ad8ba7a1b31816be617a0c9a94c4c6c3 Mon Sep 17 00:00:00 2001 From: Taehyun Lee <0417taehyun@gmail.com> Date: Thu, 14 Nov 2024 22:05:58 +0900 Subject: [PATCH] Apply lint with rebase --- website/prepare-generated-docs.mjs | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/website/prepare-generated-docs.mjs b/website/prepare-generated-docs.mjs index 20a46ffc31ac..c7e461b895a4 100644 --- a/website/prepare-generated-docs.mjs +++ b/website/prepare-generated-docs.mjs @@ -29,24 +29,20 @@ if (!response.ok) { const data = await response.json(); -data.servers = [{ - url: '', -}]; +data.servers = [ + { + url: '', + }, +]; -const outputDir = './docs/generated/' +const outputDir = './docs/generated/'; // Write the JSON to file -const outputPath = path.join(outputDir, 'openapi.json') +const outputPath = path.join(outputDir, 'openapi.json'); // Ensure directory exists await fs.mkdir(outputDir, { recursive: true }); -await fs.writeFile( - outputPath, - JSON.stringify(data, null, 2), - 'utf8' -); +await fs.writeFile(outputPath, JSON.stringify(data, null, 2), 'utf8'); console.log(`OpenAPI spec saved to ${outputPath}`); - -