DEV: Run prettier on files

DEV: Run prettier on files

hopefully I have the right version

diff --git a/assets/javascripts/initializers/add-holiday-flair.js.es6 b/assets/javascripts/initializers/add-holiday-flair.js.es6
index dc5c7c6..09adf86 100644
--- a/assets/javascripts/initializers/add-holiday-flair.js.es6
+++ b/assets/javascripts/initializers/add-holiday-flair.js.es6
@@ -13,19 +13,22 @@ export default {
   initialize() {
     withPluginApi("0.1", api => {
       const usersOnHoliday = Discourse.Site.current().users_on_holiday;
-      api.decorateCooked(el => {
-        if (!usersOnHoliday) {
-          return;
-        }
+      api.decorateCooked(
+        el => {
+          if (!usersOnHoliday) {
+            return;
+          }
 
-        usersOnHoliday.forEach(username => {
-          $(el)
-            .find(`a.mention[href="/u/${username}"]`)
-            .not(".on-holiday")
-            .append(iconHTML("calendar-alt"))
-            .addClass("on-holiday");
-        });
-      }, { id: 'discourse-calendar-holiday-flair' });
+          usersOnHoliday.forEach(username => {
+            $(el)
+              .find(`a.mention[href="/u/${username}"]`)
+              .not(".on-holiday")
+              .append(iconHTML("calendar-alt"))
+              .addClass("on-holiday");
+          });
+        },
+        { id: "discourse-calendar-holiday-flair" }
+      );
 
       api.addPosterIcon(cfs => {
         const onHoliday = customBool(cfs.on_holiday);
diff --git a/assets/javascripts/initializers/discourse-calendar.js.es6 b/assets/javascripts/initializers/discourse-calendar.js.es6
index 5e02b96..0c19529 100644
--- a/assets/javascripts/initializers/discourse-calendar.js.es6
+++ b/assets/javascripts/initializers/discourse-calendar.js.es6
@@ -22,7 +22,10 @@ function stringToHexColor(str) {
 function initializeDiscourseCalendar(api) {
   let _topicController;
 
-  api.decorateCooked(attachCalendar, { onlyStream: true, id: 'discourse-calendar' });
+  api.decorateCooked(attachCalendar, {
+    onlyStream: true,
+    id: "discourse-calendar"
+  });
 
   api.registerCustomPostMessageCallback("calendar_change", topicController => {
     const stream = topicController.get("model.postStream");

GitHub sha: deb7f0dd

1 Like