make linter happy

make linter happy
From d2569f8e779888e87f676bb4c7f5f5795b8147e5 Mon Sep 17 00:00:00 2001
From: Jeff Wong <awole20@gmail.com>
Date: Tue, 11 Dec 2018 09:41:15 -0800
Subject: [PATCH] make linter happy


diff --git a/app/assets/javascripts/discourse/components/topic-navigation.js.es6 b/app/assets/javascripts/discourse/components/topic-navigation.js.es6
index 7880f82..833ec83 100644
--- a/app/assets/javascripts/discourse/components/topic-navigation.js.es6
+++ b/app/assets/javascripts/discourse/components/topic-navigation.js.es6
@@ -125,7 +125,9 @@ export default Ember.Component.extend(PanEvents, {
     const $timelineContainer = $(".timeline-container");
     const maxOffset = parseInt($timelineContainer.css("height"), 10);
 
-    this._shouldPanClose(event) ? (offset += SWIPE_VELOCITY) : (offset -= SWIPE_VELOCITY);
+    this._shouldPanClose(event)
+      ? (offset += SWIPE_VELOCITY)
+      : (offset -= SWIPE_VELOCITY);
 
     $timelineContainer.css("bottom", -offset);
     if (offset > maxOffset) {
@@ -133,15 +135,16 @@ export default Ember.Component.extend(PanEvents, {
     } else if (offset <= 0) {
       $timelineContainer.css("bottom", "");
     } else {
-      Ember.run.later(
-        () => this._handlePanDone(offset, event),
-        20
-      );
+      Ember.run.later(() => this._handlePanDone(offset, event), 20);
     }
   },
 
   _shouldPanClose(e) {
-    return (e.deltaY > SWIPE_DISTANCE_THRESHOLD && e.velocityY > -SWIPE_VELOCITY_THRESHOLD) || e.velocityY > SWIPE_VELOCITY_THRESHOLD;
+    return (
+      (e.deltaY > SWIPE_DISTANCE_THRESHOLD &&
+        e.velocityY > -SWIPE_VELOCITY_THRESHOLD) ||
+      e.velocityY > SWIPE_VELOCITY_THRESHOLD
+    );
   },
 
   panStart(e) {
diff --git a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6
index c8bbb29..deb4f1c 100644
--- a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6
+++ b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6
@@ -327,7 +327,7 @@ export default createWidget("hamburger-menu", {
     const $centeredElement = $(document.elementFromPoint(e.clientX, e.clientY));
     if (
       $centeredElement.parents(".panel").length &&
-        !$centeredElement.hasClass("header-cloak")
+      !$centeredElement.hasClass("header-cloak")
     ) {
       this.sendWidgetAction("toggleHamburger");
     } else {
diff --git a/app/assets/javascripts/discourse/widgets/header.js.es6 b/app/assets/javascripts/discourse/widgets/header.js.es6
index 87a294f..80f213c 100644
--- a/app/assets/javascripts/discourse/widgets/header.js.es6
+++ b/app/assets/javascripts/discourse/widgets/header.js.es6
@@ -440,19 +440,23 @@ export default createWidget("header", {
   toggleBodyScrolling(bool) {
     if (!this.site.mobileView) return;
     if (bool) {
-      document.body.addEventListener("touchmove", this.preventDefault, { passive: false });
+      document.body.addEventListener("touchmove", this.preventDefault, {
+        passive: false
+      });
     } else {
-      document.body.removeEventListener("touchmove", this.preventDefault, { passive: false });
+      document.body.removeEventListener("touchmove", this.preventDefault, {
+        passive: false
+      });
     }
   },
 
   preventDefault(e) {
     // prevent all scrollin on menu panels, except on overflow
-    const height = window.innerHeight
-        ? window.innerHeight
-        : $(window).height();
-    if (!$(e.target).parents(".menu-panel").length ||
-        $(".menu-panel .panel-body-contents").height() <= height) {
+    const height = window.innerHeight ? window.innerHeight : $(window).height();
+    if (
+      !$(e.target).parents(".menu-panel").length ||
+      $(".menu-panel .panel-body-contents").height() <= height
+    ) {
       e.preventDefault();
     }
   },
diff --git a/app/assets/javascripts/discourse/widgets/user-menu.js.es6 b/app/assets/javascripts/discourse/widgets/user-menu.js.es6
index 0053af4..d0261e2 100644
--- a/app/assets/javascripts/discourse/widgets/user-menu.js.es6
+++ b/app/assets/javascripts/discourse/widgets/user-menu.js.es6
@@ -198,7 +198,7 @@ export default createWidget("user-menu", {
     const $centeredElement = $(document.elementFromPoint(e.clientX, e.clientY));
     if (
       $centeredElement.parents(".panel").length &&
-        !$centeredElement.hasClass("header-cloak")
+      !$centeredElement.hasClass("header-cloak")
     ) {
       this.sendWidgetAction("toggleUserMenu");
     } else {
diff --git a/app/assets/stylesheets/mobile/menu-panel.scss b/app/assets/stylesheets/mobile/menu-panel.scss
index 7721650..9392ae7 100644
--- a/app/assets/stylesheets/mobile/menu-panel.scss
+++ b/app/assets/stylesheets/mobile/menu-panel.scss
@@ -15,4 +15,3 @@
     transition: opacity 0.2s ease-out;
   }
 }
-

GitHub