DEV: apply new coding standards (#10592)

DEV: apply new coding standards (#10592)

diff --git a/app/assets/javascripts/activate-account.js b/app/assets/javascripts/activate-account.js
index b637b27..3de61eb 100644
--- a/app/assets/javascripts/activate-account.js
+++ b/app/assets/javascripts/activate-account.js
@@ -1,23 +1,18 @@
 // discourse-skip-module
-(function() {
-  setTimeout(function() {
+(function () {
+  setTimeout(function () {
     const $activateButton = $("#activate-account-button");
-    $activateButton.on("click", function() {
+    $activateButton.on("click", function () {
       $activateButton.prop("disabled", true);
       const hpPath = document.getElementById("data-activate-account").dataset
         .path;
       $.ajax(hpPath)
-        .then(function(hp) {
+        .then(function (hp) {
           $("#password_confirmation").val(hp.value);
-          $("#challenge").val(
-            hp.challenge
-              .split("")
-              .reverse()
-              .join("")
-          );
+          $("#challenge").val(hp.challenge.split("").reverse().join(""));
           $("#activate-account-form").submit();
         })
-        .fail(function() {
+        .fail(function () {
           $activateButton.prop("disabled", false);
         });
     });
diff --git a/app/assets/javascripts/admin/adapters/api-key.js b/app/assets/javascripts/admin/adapters/api-key.js
index 9777518..860e4c5 100644
--- a/app/assets/javascripts/admin/adapters/api-key.js
+++ b/app/assets/javascripts/admin/adapters/api-key.js
@@ -9,5 +9,5 @@ export default RESTAdapter.extend({
 
   apiNameFor() {
     return "key";
-  }
+  },
 });
diff --git a/app/assets/javascripts/admin/adapters/build-plugin.js b/app/assets/javascripts/admin/adapters/build-plugin.js
index 0297aaa..3a81ab4 100644
--- a/app/assets/javascripts/admin/adapters/build-plugin.js
+++ b/app/assets/javascripts/admin/adapters/build-plugin.js
@@ -6,6 +6,6 @@ export default function buildPluginAdapter(pluginName) {
       return (
         "/admin/plugins/" + pluginName + this._super(store, type, findArgs)
       );
-    }
+    },
   });
 }
diff --git a/app/assets/javascripts/admin/adapters/customization-base.js b/app/assets/javascripts/admin/adapters/customization-base.js
index d1087e7..272103e 100644
--- a/app/assets/javascripts/admin/adapters/customization-base.js
+++ b/app/assets/javascripts/admin/adapters/customization-base.js
@@ -3,5 +3,5 @@ import RestAdapter from "discourse/adapters/rest";
 export default RestAdapter.extend({
   basePath() {
     return "/admin/customize/";
-  }
+  },
 });
diff --git a/app/assets/javascripts/admin/adapters/email-style.js b/app/assets/javascripts/admin/adapters/email-style.js
index c9f3865..12919f0 100644
--- a/app/assets/javascripts/admin/adapters/email-style.js
+++ b/app/assets/javascripts/admin/adapters/email-style.js
@@ -3,5 +3,5 @@ import RestAdapter from "discourse/adapters/rest";
 export default RestAdapter.extend({
   pathFor() {
     return "/admin/customize/email_style";
-  }
+  },
 });
diff --git a/app/assets/javascripts/admin/adapters/embedding.js b/app/assets/javascripts/admin/adapters/embedding.js
index c1d5ece..ba3fb81 100644
--- a/app/assets/javascripts/admin/adapters/embedding.js
+++ b/app/assets/javascripts/admin/adapters/embedding.js
@@ -3,5 +3,5 @@ import RestAdapter from "discourse/adapters/rest";
 export default RestAdapter.extend({
   pathFor() {
     return "/admin/customize/embedding";
-  }
+  },
 });
diff --git a/app/assets/javascripts/admin/adapters/staff-action-log.js b/app/assets/javascripts/admin/adapters/staff-action-log.js
index 8e0f087..d281f97 100644
--- a/app/assets/javascripts/admin/adapters/staff-action-log.js
+++ b/app/assets/javascripts/admin/adapters/staff-action-log.js
@@ -3,5 +3,5 @@ import RestAdapter from "discourse/adapters/rest";
 export default RestAdapter.extend({
   basePath() {
     return "/admin/logs/";
-  }
+  },
 });
diff --git a/app/assets/javascripts/admin/adapters/tag-group.js b/app/assets/javascripts/admin/adapters/tag-group.js
index 2e950aa..4c12654 100644
--- a/app/assets/javascripts/admin/adapters/tag-group.js
+++ b/app/assets/javascripts/admin/adapters/tag-group.js
@@ -1,5 +1,5 @@
 import RestAdapter from "discourse/adapters/rest";
 
 export default RestAdapter.extend({
-  jsonMode: true
+  jsonMode: true,
 });
diff --git a/app/assets/javascripts/admin/adapters/theme.js b/app/assets/javascripts/admin/adapters/theme.js
index 8609df2..cf34ab4 100644
--- a/app/assets/javascripts/admin/adapters/theme.js
+++ b/app/assets/javascripts/admin/adapters/theme.js
@@ -7,20 +7,20 @@ export default RestAdapter.extend({
 
   afterFindAll(results) {
     let map = {};
-    results.forEach(theme => {
+    results.forEach((theme) => {
       map[theme.id] = theme;
     });
-    results.forEach(theme => {
+    results.forEach((theme) => {
       let mapped = theme.get("child_themes") || [];
-      mapped = mapped.map(t => map[t.id]);
+      mapped = mapped.map((t) => map[t.id]);
       theme.set("childThemes", mapped);
 
       let mappedParents = theme.get("parent_themes") || [];
-      mappedParents = mappedParents.map(t => map[t.id]);
+      mappedParents = mappedParents.map((t) => map[t.id]);
       theme.set("parentThemes", mappedParents);
     });
     return results;
   },
 
-  jsonMode: true
+  jsonMode: true,
 });
diff --git a/app/assets/javascripts/admin/adapters/web-hook-event.js b/app/assets/javascripts/admin/adapters/web-hook-event.js
index 4c80ac3..1acd383 100644
--- a/app/assets/javascripts/admin/adapters/web-hook-event.js
+++ b/app/assets/javascripts/admin/adapters/web-hook-event.js
@@ -3,5 +3,5 @@ import RESTAdapter from "discourse/adapters/rest";
 export default RESTAdapter.extend({
   basePath() {
     return "/admin/api/";
-  }
+  },
 });
diff --git a/app/assets/javascripts/admin/adapters/web-hook.js b/app/assets/javascripts/admin/adapters/web-hook.js
index 4c80ac3..1acd383 100644
--- a/app/assets/javascripts/admin/adapters/web-hook.js
+++ b/app/assets/javascripts/admin/adapters/web-hook.js
@@ -3,5 +3,5 @@ import RESTAdapter from "discourse/adapters/rest";
 export default RESTAdapter.extend({
   basePath() {
     return "/admin/api/";
-  }
+  },
 });
diff --git a/app/assets/javascripts/admin/components/ace-editor.js b/app/assets/javascripts/admin/components/ace-editor.js
index a67d813..fe1db16 100644
--- a/app/assets/javascripts/admin/components/ace-editor.js
+++ b/app/assets/javascripts/admin/components/ace-editor.js
@@ -37,7 +37,7 @@ export default Component.extend({
   placeholderChanged() {
     if (this._editor) {
       this._editor.setOptions({
-        placeholder: this.placeholder
+        placeholder: this.placeholder,
       });
     }
   },
@@ -54,13 +54,13 @@ export default Component.extend({
       editor.setOptions({
         readOnly: disabled,
         highlightActiveLine: !disabled,
-        highlightGutterLine: !disabled
+        highlightGutterLine: !disabled,
       });
       editor.container.parentNode.setAttribute("data-disabled", disabled);
     }
   },
 
-  _destroyEditor: on("willDestroyElement", function() {
+  _destroyEditor: on("willDestroyElement", function () {
     if (this._editor) {
       this._editor.destroy();
       this._editor = null;
@@ -82,7 +82,7 @@ export default Component.extend({
   didInsertElement() {
     this._super(...arguments);
     loadScript("/javascripts/ace/ace.js?v=1.4.12").then(() => {
-      window.ace.require(["ace/ace"], loadedAce => {
+      window.ace.require(["ace/ace"], (loadedAce) => {
         loadedAce.config.set("loadWorkerFromBlob", false);
         loadedAce.config.set("workerPath", getURL("/javascripts/ace")); // Do not use CDN for workers
 
@@ -129,6 +129,6 @@ export default Component.extend({
         this._editor.focus();
         this._editor.navigateFileEnd();
       }
-    }
-  }
+    },
+  },
 });
diff --git a/app/assets/javascripts/admin/components/admin-backups-logs.js b/app/assets/javascripts/admin/components/admin-backups-logs.js
index 76c8cff..2531a52 100644

[... diff too long, it was truncated ...]

GitHub sha: 52672b9e

This commit appears in #10592 which was merged by jjaffeux.