fix prettier linting (#7809)

fix prettier linting (#7809)

diff --git a/app/assets/javascripts/discourse/widgets/default-notification-item.js.es6 b/app/assets/javascripts/discourse/widgets/default-notification-item.js.es6
index 114ff29..eb2caff 100644
--- a/app/assets/javascripts/discourse/widgets/default-notification-item.js.es6
+++ b/app/assets/javascripts/discourse/widgets/default-notification-item.js.es6
@@ -13,8 +13,9 @@ import { setTransientHeader } from "discourse/lib/ajax";
 import { userPath } from "discourse/lib/url";
 import { iconNode } from "discourse-common/lib/icon-library";
 
-export const DefaultNotificationItem =
-  createWidget("default-notification-item", {
+export const DefaultNotificationItem = createWidget(
+  "default-notification-item",
+  {
     tagName: "li",
 
     buildClasses(attrs) {
@@ -82,7 +83,10 @@ export const DefaultNotificationItem =
       const username = formatUsername(data.display_username);
       const description = this.description(data);
 
-      return I18n.t(`notifications.${notificationName}`, { description, username });
+      return I18n.t(`notifications.${notificationName}`, {
+        description,
+        username
+      });
     },
 
     icon(notificationName) {
@@ -152,4 +156,5 @@ export const DefaultNotificationItem =
         }
       });
     }
-  });
+  }
+);
diff --git a/app/assets/javascripts/discourse/widgets/group-message-summary-notification-item.js.es6 b/app/assets/javascripts/discourse/widgets/group-message-summary-notification-item.js.es6
index 7e18b54..b3162a3 100644
--- a/app/assets/javascripts/discourse/widgets/group-message-summary-notification-item.js.es6
+++ b/app/assets/javascripts/discourse/widgets/group-message-summary-notification-item.js.es6
@@ -1,11 +1,18 @@
 import { createWidgetFrom } from "discourse/widgets/widget";
 import { DefaultNotificationItem } from "discourse/widgets/default-notification-item";
 
-createWidgetFrom(DefaultNotificationItem, "group-message-summary-notification-item", {
-  text(notificationName, data) {
-    const count = data.inbox_count;
-    const group_name = data.group_name;
+createWidgetFrom(
+  DefaultNotificationItem,
+  "group-message-summary-notification-item",
+  {
+    text(notificationName, data) {
+      const count = data.inbox_count;
+      const group_name = data.group_name;
 
-    return I18n.t("notifications.group_message_summary", { count, group_name });
+      return I18n.t("notifications.group_message_summary", {
+        count,
+        group_name
+      });
+    }
   }
-});
+);
diff --git a/app/assets/javascripts/discourse/widgets/invitee-accepted-notification-item.js.es6 b/app/assets/javascripts/discourse/widgets/invitee-accepted-notification-item.js.es6
index b88d168..2129e4c 100644
--- a/app/assets/javascripts/discourse/widgets/invitee-accepted-notification-item.js.es6
+++ b/app/assets/javascripts/discourse/widgets/invitee-accepted-notification-item.js.es6
@@ -2,8 +2,12 @@ import { createWidgetFrom } from "discourse/widgets/widget";
 import { DefaultNotificationItem } from "discourse/widgets/default-notification-item";
 import { userPath } from "discourse/lib/url";
 
-createWidgetFrom(DefaultNotificationItem, "invitee-accepted-notification-item", {
-  url(data) {
-    return userPath(data.display_username);
-  },
-});
+createWidgetFrom(
+  DefaultNotificationItem,
+  "invitee-accepted-notification-item",
+  {
+    url(data) {
+      return userPath(data.display_username);
+    }
+  }
+);
diff --git a/app/assets/javascripts/discourse/widgets/liked-consolidated-notification-item.js.es6 b/app/assets/javascripts/discourse/widgets/liked-consolidated-notification-item.js.es6
index 9c5f7d9..61609ea 100644
--- a/app/assets/javascripts/discourse/widgets/liked-consolidated-notification-item.js.es6
+++ b/app/assets/javascripts/discourse/widgets/liked-consolidated-notification-item.js.es6
@@ -3,23 +3,29 @@ import { DefaultNotificationItem } from "discourse/widgets/default-notification-
 import { escapeExpression } from "discourse/lib/utilities";
 import { userPath } from "discourse/lib/url";
 
-createWidgetFrom(DefaultNotificationItem, "liked-consolidated-notification-item", {
-  url(data) {
-    return userPath(
-      `${this.attrs.username ||
-        this.currentUser
-          .username}/notifications/likes-received?acting_username=${
-        data.display_username
-      }`
-    );
-  },
+createWidgetFrom(
+  DefaultNotificationItem,
+  "liked-consolidated-notification-item",
+  {
+    url(data) {
+      return userPath(
+        `${this.attrs.username ||
+          this.currentUser
+            .username}/notifications/likes-received?acting_username=${
+          data.display_username
+        }`
+      );
+    },
 
-  description(data) {
-    const description =
-      I18n.t("notifications.liked_consolidated_description", {
-        count: parseInt(data.count)
-      });
+    description(data) {
+      const description = I18n.t(
+        "notifications.liked_consolidated_description",
+        {
+          count: parseInt(data.count)
+        }
+      );
 
-    return Ember.isEmpty(description) ? "" : escapeExpression(description);
+      return Ember.isEmpty(description) ? "" : escapeExpression(description);
+    }
   }
-});
+);
diff --git a/app/assets/javascripts/discourse/widgets/user-notifications-large.js.es6 b/app/assets/javascripts/discourse/widgets/user-notifications-large.js.es6
index f6d3acd..76bf1da 100644
--- a/app/assets/javascripts/discourse/widgets/user-notifications-large.js.es6
+++ b/app/assets/javascripts/discourse/widgets/user-notifications-large.js.es6
@@ -12,15 +12,16 @@ createWidget("large-notification-item", {
   },
 
   html(attrs) {
-    const notificationName =
-      this.site.notificationLookup[attrs.notification_type];
+    const notificationName = this.site.notificationLookup[
+      attrs.notification_type
+    ];
 
     return [
       this.attach(
         `${notificationName.dasherize()}-notification-item`,
         attrs,
         {},
-        { fallbackWidgetName: 'default-notification-item' },
+        { fallbackWidgetName: "default-notification-item" }
       ),
       h("span.time", dateNode(attrs.created_at))
     ];
diff --git a/app/assets/javascripts/discourse/widgets/user-notifications.js.es6 b/app/assets/javascripts/discourse/widgets/user-notifications.js.es6
index 579e18f..fb19fb5 100644
--- a/app/assets/javascripts/discourse/widgets/user-notifications.js.es6
+++ b/app/assets/javascripts/discourse/widgets/user-notifications.js.es6
@@ -88,21 +88,18 @@ export default createWidget("user-notifications", {
     if (state.loading) {
       result.push(h("div.spinner-container", h("div.spinner")));
     } else if (state.notifications.length) {
-      const notificationItems =
-        state.notifications.map(notificationAttrs => {
-
-          const notificationName =
-            this.site.notificationLookup[notificationAttrs.notification_type];
-
-          return (
-            this.attach(
-              `${notificationName.dasherize()}-notification-item`,
-              notificationAttrs,
-              {},
-              { fallbackWidgetName: 'default-notification-item' }
-            )
-          );
-        });
+      const notificationItems = state.notifications.map(notificationAttrs => {
+        const notificationName = this.site.notificationLookup[
+          notificationAttrs.notification_type
+        ];
+
+        return this.attach(
+          `${notificationName.dasherize()}-notification-item`,
+          notificationAttrs,
+          {},
+          { fallbackWidgetName: "default-notification-item" }
+        );
+      });
 
       result.push(h("hr"));
 
diff --git a/app/assets/javascripts/discourse/widgets/widget.js.es6 b/app/assets/javascripts/discourse/widgets/widget.js.es6
index dc011c7..ac366ec 100644
--- a/app/assets/javascripts/discourse/widgets/widget.js.es6
+++ b/app/assets/javascripts/discourse/widgets/widget.js.es6
@@ -229,7 +229,11 @@ export default class Widget {
       result.dirtyKeys = this.dirtyKeys;
       return result;

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

GitHub sha: 56b76f31