Apply JSDoc alignment rule to scripts/ directory
I mistakenly applied this rule only to `*.ts` files, but we should apply
it to JavaScript files also.
Bug: none
Change-Id: I6c7af0e897e06a7a04ec3dea83fcbd9719744705
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4111459
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
diff --git a/scripts/component_server/server.js b/scripts/component_server/server.js
index 093149c..5423aac 100644
--- a/scripts/component_server/server.js
+++ b/scripts/component_server/server.js
@@ -259,15 +259,15 @@
*/
/**
- * We also let the user provide a different base path for any shared
- * resources that we load. But if this is provided along with the
- * componentDocsBaseArg, and the two are the same, we don't want to use the
- * shared resources base, as it's part of the componentDocsBaseArg and
- * therefore the URL is already correct.
- *
- * If we didn't get a componentDocsBaseArg or we did and it's different to
- * the sharedResourcesBase, we use sharedResourcesBase.
- */
+ * We also let the user provide a different base path for any shared
+ * resources that we load. But if this is provided along with the
+ * componentDocsBaseArg, and the two are the same, we don't want to use the
+ * shared resources base, as it's part of the componentDocsBaseArg and
+ * therefore the URL is already correct.
+ *
+ * If we didn't get a componentDocsBaseArg or we did and it's different to
+ * the sharedResourcesBase, we use sharedResourcesBase.
+ */
const baseUrlForSharedResource =
componentDocsBaseArg && componentDocsBaseArg.endsWith(sharedResourcesBase) ? '/' : `/${sharedResourcesBase}`;
const fileContents = await fs.promises.readFile(path.join(componentDocsBaseFolder, filePath), {encoding: 'utf8'});