From aa2c20020005fe87a98fceaef3fb384361e1b1c6 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Fri, 18 Aug 2023 09:59:12 +0200 Subject: [PATCH] Merge pull request #14396 from overleaf/jpa-prettier-module-scripts [web] enable prettier for module scripts and ignore some more paths GitOrigin-RevId: f130e420d6fd1a85e85d994d342d49fdffca813a --- services/web/.prettierignore | 3 ++- .../scripts/change-compile-timeout.js | 13 +++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/services/web/.prettierignore b/services/web/.prettierignore index 777a6c225b..3ab82e1eb6 100644 --- a/services/web/.prettierignore +++ b/services/web/.prettierignore @@ -1,6 +1,7 @@ # NOTE: changing paths may require updating them in the Makefile too. +data/ +scripts/translations/.cache/ node_modules -modules/**/scripts frontend/js/vendor modules/**/frontend/js/vendor public/js diff --git a/services/web/modules/server-ce-scripts/scripts/change-compile-timeout.js b/services/web/modules/server-ce-scripts/scripts/change-compile-timeout.js index d3745e777d..072ce9b608 100644 --- a/services/web/modules/server-ce-scripts/scripts/change-compile-timeout.js +++ b/services/web/modules/server-ce-scripts/scripts/change-compile-timeout.js @@ -1,5 +1,9 @@ const minimist = require('minimist') -const { db, ObjectId, waitForDb } = require('../../../app/src/infrastructure/mongodb') +const { + db, + ObjectId, + waitForDb, +} = require('../../../app/src/infrastructure/mongodb') async function main() { await waitForDb() @@ -10,7 +14,12 @@ async function main() { const { 'user-id': userId, 'compile-timeout': rawCompileTimeout } = argv const compileTimeout = parseInt(rawCompileTimeout, 10) - if (!userId || !ObjectId.isValid(userId) || !rawCompileTimeout || Number.isNaN(compileTimeout)) { + if ( + !userId || + !ObjectId.isValid(userId) || + !rawCompileTimeout || + Number.isNaN(compileTimeout) + ) { console.error( `Usage: node ${__filename} --user-id=5a9414f259776c7900b300e6 --timeout=90` )