DEV: prettier 1.18.2 (#7810)

DEV: prettier 1.18.2 (#7810)

diff --git a/app/assets/javascripts/admin/models/report.js.es6 b/app/assets/javascripts/admin/models/report.js.es6
index cbe397d..019f19a 100644
--- a/app/assets/javascripts/admin/models/report.js.es6
+++ b/app/assets/javascripts/admin/models/report.js.es6
@@ -332,9 +332,7 @@ const Report = Discourse.Model.extend({
         ignoreTitle: true
       });
 
-      return `<a href='${href}'>${avatarImg}<span class='username'>${
-        user.name
-      }</span></a>`;
+      return `<a href='${href}'>${avatarImg}<span class='username'>${user.name}</span></a>`;
     };
 
     return {
diff --git a/app/assets/javascripts/discourse/components/composer-action-title.js.es6 b/app/assets/javascripts/discourse/components/composer-action-title.js.es6
index bf7c9bc..c4e014c 100644
--- a/app/assets/javascripts/discourse/components/composer-action-title.js.es6
+++ b/app/assets/javascripts/discourse/components/composer-action-title.js.es6
@@ -72,9 +72,7 @@ export default Ember.Component.extend({
   },
 
   _formatReplyToUserPost(avatar, link) {
-    const htmlLink = `<a class="user-link" href="${link.href}">${
-      link.anchor
-    }</a>`;
+    const htmlLink = `<a class="user-link" href="${link.href}">${link.anchor}</a>`;
     return `${avatar}${htmlLink}`.htmlSafe();
   }
 });
diff --git a/app/assets/javascripts/discourse/lib/link-mentions.js.es6 b/app/assets/javascripts/discourse/lib/link-mentions.js.es6
index 16bc730..07f3738 100644
--- a/app/assets/javascripts/discourse/lib/link-mentions.js.es6
+++ b/app/assets/javascripts/discourse/lib/link-mentions.js.es6
@@ -10,9 +10,7 @@ function replaceSpan($e, username, opts) {
 
   if (opts && opts.group) {
     if (opts.mentionable) {
-      extra = `data-name='${username}' data-mentionable-user-count='${
-        opts.mentionable.user_count
-      }' data-max-mentions='${maxGroupMention}'`;
+      extra = `data-name='${username}' data-mentionable-user-count='${opts.mentionable.user_count}' data-max-mentions='${maxGroupMention}'`;
       extraClass = "notify";
     }
     $e.replaceWith(
diff --git a/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6 b/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6
index 7891226..8c132c8 100644
--- a/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6
+++ b/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6
@@ -53,9 +53,7 @@ export function registerTopicFooterButton(button) {
     !normalizedButton.translatedTitle
   ) {
     Ember.error(
-      `Attempted to register a topic button: ${
-        button.id
-      } with no icon or title.`
+      `Attempted to register a topic button: ${button.id} with no icon or title.`
     );
     return;
   }
diff --git a/app/assets/javascripts/discourse/widgets/connector.js.es6 b/app/assets/javascripts/discourse/widgets/connector.js.es6
index 41e6a89..b077bde 100644
--- a/app/assets/javascripts/discourse/widgets/connector.js.es6
+++ b/app/assets/javascripts/discourse/widgets/connector.js.es6
@@ -16,9 +16,7 @@ export default class Connector {
 
       if (opts.templateName) {
         deprecated(
-          `Using a 'templateName' for a connector is deprecated. Use 'component' instead [${
-            opts.templateName
-          }]`
+          `Using a 'templateName' for a connector is deprecated. Use 'component' instead [${opts.templateName}]`
         );
       }
 
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 eb2caff..610ac1f 100644
--- a/app/assets/javascripts/discourse/widgets/default-notification-item.js.es6
+++ b/app/assets/javascripts/discourse/widgets/default-notification-item.js.es6
@@ -67,9 +67,7 @@ export const DefaultNotificationItem = createWidget(
 
       if (this.attrs.fancy_title) {
         if (this.attrs.topic_id) {
-          return `<span data-topic-id="${this.attrs.topic_id}">${
-            this.attrs.fancy_title
-          }</span>`;
+          return `<span data-topic-id="${this.attrs.topic_id}">${this.attrs.fancy_title}</span>`;
         }
         return this.attrs.fancy_title;
       }
diff --git a/app/assets/javascripts/discourse/widgets/header.js.es6 b/app/assets/javascripts/discourse/widgets/header.js.es6
index 271600c..b48b302 100644
--- a/app/assets/javascripts/discourse/widgets/header.js.es6
+++ b/app/assets/javascripts/discourse/widgets/header.js.es6
@@ -399,9 +399,7 @@ export default createWidget("header", {
       var params = "";
 
       if (context) {
-        params = `?context=${context.type}&context_id=${
-          context.id
-        }&skip_context=${this.state.skipSearchContext}`;
+        params = `?context=${context.type}&context_id=${context.id}&skip_context=${this.state.skipSearchContext}`;
       }
 
       const currentPath = this.register
diff --git a/app/assets/javascripts/discourse/widgets/search-menu-results.js.es6 b/app/assets/javascripts/discourse/widgets/search-menu-results.js.es6
index b6acdf8..c65c34a 100644
--- a/app/assets/javascripts/discourse/widgets/search-menu-results.js.es6
+++ b/app/assets/javascripts/discourse/widgets/search-menu-results.js.es6
@@ -73,9 +73,7 @@ createSearchResult({
     return h(
       "span",
       {
-        className: `tag-${tag} discourse-tag ${
-          Discourse.SiteSettings.tag_style
-        }`
+        className: `tag-${tag} discourse-tag ${Discourse.SiteSettings.tag_style}`
       },
       tag
     );
diff --git a/app/assets/javascripts/discourse/widgets/widget.js.es6 b/app/assets/javascripts/discourse/widgets/widget.js.es6
index ac366ec..004cce4 100644
--- a/app/assets/javascripts/discourse/widgets/widget.js.es6
+++ b/app/assets/javascripts/discourse/widgets/widget.js.es6
@@ -230,9 +230,7 @@ export default class Widget {
       return result;
     } else {
       throw new Error(
-        `Couldn't find ${widgetName} or fallback ${
-          otherOpts.fallbackWidgetName
-        }`
+        `Couldn't find ${widgetName} or fallback ${otherOpts.fallbackWidgetName}`
       );
     }
   }
diff --git a/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6 b/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6
index 20fb744..f0e9835 100644
--- a/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6
+++ b/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6
@@ -14,9 +14,7 @@ export default Ember.Mixin.create({
     this.bodySelector = ".select-kit-body";
     this.wrapperSelector = ".select-kit-wrapper";
     this.scrollableParentSelector = ".modal-body";
-    this.fixedPlaceholderSelector = `.select-kit-fixed-placeholder-${
-      this.elementId
-    }`;
+    this.fixedPlaceholderSelector = `.select-kit-fixed-placeholder-${this.elementId}`;
   },
 
   $findRowByValue(value) {
diff --git a/package.json b/package.json
index 6a040ff..d49c13b 100644
--- a/package.json
+++ b/package.json
@@ -38,7 +38,7 @@
     "chrome-remote-interface": "^0.25",
     "eslint": "^4.19",
     "pretender": "^1.6",
-    "prettier": "^1.16.4",
+    "prettier": "^1.18.2",
     "puppeteer": "1.16",
     "qunit": "2.8.0",
     "route-recognizer": "^0.3.3",
diff --git a/test/javascripts/acceptance/topic-test.js.es6 b/test/javascripts/acceptance/topic-test.js.es6
index 3623d74..9760ffe 100644
--- a/test/javascripts/acceptance/topic-test.js.es6
+++ b/test/javascripts/acceptance/topic-test.js.es6
@@ -22,9 +22,7 @@ QUnit.test("Reply as new topic", async assert => {
     find(".d-editor-input")
       .val()
       .trim(),
-    `Continuing the discussion from [Internationalization / localization](${
-      window.location.origin
-    }/t/internationalization-localization/280):`,
+    `Continuing the discussion from [Internationalization / localization](${window.location.origin}/t/internationalization-localization/280):`,
     "it fills composer with the ring string"
   );
   assert.equal(
@@ -47,9 +45,7 @@ QUnit.test("Reply as new message", async assert => {

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

GitHub sha: c6326846

1 Like