Make Prettier happy

Make Prettier happy

diff --git a/app/assets/javascripts/discourse/components/footer-nav.js.es6 b/app/assets/javascripts/discourse/components/footer-nav.js.es6
index 3fe473b..56eecf2 100644
--- a/app/assets/javascripts/discourse/components/footer-nav.js.es6
+++ b/app/assets/javascripts/discourse/components/footer-nav.js.es6
@@ -121,7 +121,7 @@ const FooterNavComponent = MountWidget.extend(
     setBackForward() {
       let index = this.get("currentRouteIndex");
 
-      this.set("canGoBack", (index > 1 || document.referrer) ? true : false);
+      this.set("canGoBack", index > 1 || document.referrer ? true : false);
       this.set("canGoForward", index < this.routeHistory.length ? true : false);
     }
   }
diff --git a/app/assets/stylesheets/common/components/footer-nav.scss b/app/assets/stylesheets/common/components/footer-nav.scss
index a4f2049..f303371 100644
--- a/app/assets/stylesheets/common/components/footer-nav.scss
+++ b/app/assets/stylesheets/common/components/footer-nav.scss
@@ -56,4 +56,3 @@ body.footer-nav-visible {
     -webkit-backdrop-filter: blur(10px);
   }
 }
-

GitHub sha: 60db57ac

IDE integration makes for much more happiness

This is what my Vim does.

Every time I hit save prettier runs.

2 Likes

Thanks! I had the same thing in Sublime Text, but somehow after an upgrade the configuration got reset and it was not autosaving .es6 files.