diff --git a/.woodpecker.yml b/.woodpecker.yml index b2682df..bcfb872 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -14,7 +14,7 @@ pipeline: - git submodule update --recursive --remote prettier_markdown_check: - image: tmknom/prettier + image: tmknom/prettier:3.0.0 commands: - prettier -c . "!dist" "!lemmy-docs" "!lemmy-translations" "!joinlemmy-translations" "!lemmy-js-client" "!lemmy-stats-crawler" "!src/shared/instance_stats.ts" diff --git a/crawl.mjs b/crawl.mjs index cee0a82..8d0e328 100644 --- a/crawl.mjs +++ b/crawl.mjs @@ -11,7 +11,7 @@ fs.mkdirSync(outDir, { recursive: true }); // crawl instance stats try { const recommended_instances = JSON.parse( - fs.readFileSync(recommendationsFile, "utf8") + fs.readFileSync(recommendationsFile, "utf8"), ); var all_recommended = []; for (var k in recommended_instances) { @@ -33,7 +33,7 @@ try { { cwd: "lemmy-stats-crawler", encoding: "utf8", - } + }, ); let savedOutput = ""; @@ -55,11 +55,12 @@ try { stats.instance_details = stats.instance_details // Exclude instances with closed registration .filter( - i => i.site_info.site_view.local_site.registration_mode != "closed" + i => i.site_info.site_view.local_site.registration_mode != "closed", ) // Exclude instances with few active users .filter( - i => i.site_info.site_view.counts.users_active_month > min_monthly_users + i => + i.site_info.site_view.counts.users_active_month > min_monthly_users, ); // Exclude unnecessary data stats.instance_details.forEach(i => { diff --git a/generate_translations.mjs b/generate_translations.mjs index c2f41f5..424727e 100644 --- a/generate_translations.mjs +++ b/generate_translations.mjs @@ -33,7 +33,7 @@ fs.readdir(translationDir, (_err, files) => { const lang = filename.split(".")[0]; try { const json = JSON.parse( - fs.readFileSync(translationDir + filename, "utf8") + fs.readFileSync(translationDir + filename, "utf8"), ); let data = `export const ${lang} = {\n translation: {`; for (const key in json) {