From 877339c8af23baa9be6b5de4b74b7b2f517618d8 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 17 Dec 2025 06:55:55 +0100 Subject: Prettier a few files --- scripts/genIndex.js | 6 +++--- scripts/license.js | 7 +------ 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/genIndex.js b/scripts/genIndex.js index 701a7566..c1b68227 100644 --- a/scripts/genIndex.js +++ b/scripts/genIndex.js @@ -50,12 +50,12 @@ if (fs.existsSync(path.join(targetDir, "index.js")) || fs.existsSync(path.join(t process.exit(1); } -const dirs = fs.readdirSync(targetDir).filter(f => fs.statSync(path.join(targetDir, f)).isDirectory()); +const dirs = fs.readdirSync(targetDir).filter((f) => fs.statSync(path.join(targetDir, f)).isDirectory()); for (const dir of dirs) { content += `export * from "./${dir}";\n`; } -const files = fs.readdirSync(targetDir).filter(f => f.endsWith(".js") || f.endsWith(".ts")); +const files = fs.readdirSync(targetDir).filter((f) => f.endsWith(".js") || f.endsWith(".ts")); for (const file of files) { const filePath = path.join(targetDir, file); const stat = fs.statSync(filePath); @@ -66,4 +66,4 @@ for (const file of files) { } } -fs.writeFileSync(path.join(targetDir, "index.ts"), content); \ No newline at end of file +fs.writeFileSync(path.join(targetDir, "index.ts"), content); diff --git a/scripts/license.js b/scripts/license.js index b12080dd..380a3ed6 100644 --- a/scripts/license.js +++ b/scripts/license.js @@ -34,12 +34,7 @@ const addToDir = (dir) => { const commentStrings = languageCommentStrings[fileType]; if (!commentStrings) continue; - const preamble = - commentStrings[0] + - "\n" + - SPACEBAR_LICENSE_PREAMBLE + - "\n" + - commentStrings[1]; + const preamble = commentStrings[0] + "\n" + SPACEBAR_LICENSE_PREAMBLE + "\n" + commentStrings[1]; if (file.startsWith(preamble)) { continue; -- cgit 1.5.1