DEV: Fix coding style.

DEV: Fix coding style.

From 38e29d8c940fd7a04e1a4121e5abc45e92b1f606 Mon Sep 17 00:00:00 2001
From: Dan Ungureanu <dan@ungureanu.me>
Date: Wed, 21 Nov 2018 11:59:33 +0200
Subject: [PATCH] DEV: Fix coding style.


diff --git a/app/assets/javascripts/discourse/helpers/topic-link.js.es6 b/app/assets/javascripts/discourse/helpers/topic-link.js.es6
index 31e6a6a..44f9d10 100644
--- a/app/assets/javascripts/discourse/helpers/topic-link.js.es6
+++ b/app/assets/javascripts/discourse/helpers/topic-link.js.es6
@@ -11,6 +11,8 @@ registerUnbound("topic-link", (topic, args) => {
     args.class.split(" ").forEach(c => classes.push(c));
   }
 
-  const result = `<a href='${url}' class='${classes.join(" ")}' data-topic-id='${topic.id}'>${title}</a>`;
+  const result = `<a href='${url}'
+                     class='${classes.join(" ")}'
+                     data-topic-id='${topic.id}'>${title}</a>`;
   return new Handlebars.SafeString(result);
 });

GitHub

1 Like

@udan11, highly recommend you get something integrated into your IDE that lints on save, its a huge time saver.

1 Like