Fix eslint

approved
#1

Fix eslint

diff --git a/assets/javascripts/discourse/components/explorer-container.js.es6 b/assets/javascripts/discourse/components/explorer-container.js.es6
index 987fde2..2f1629c 100644
--- a/assets/javascripts/discourse/components/explorer-container.js.es6
+++ b/assets/javascripts/discourse/components/explorer-container.js.es6
@@ -52,7 +52,7 @@ export default Ember.Component.extend({
       Ember.run.throttle(this, mousemove, event, 20);
     }).bind(this);
 
-    const mouseup = (e => {
+    const mouseup = (() => {
       $document.off("mousemove", throttledMousemove);
       $document.off("mouseup", mouseup);
       this.setProperties({
diff --git a/assets/javascripts/discourse/initializers/initialize-data-explorer.js.es6 b/assets/javascripts/discourse/initializers/initialize-data-explorer.js.es6
index 917f14e..e62f780 100644
--- a/assets/javascripts/discourse/initializers/initialize-data-explorer.js.es6
+++ b/assets/javascripts/discourse/initializers/initialize-data-explorer.js.es6
@@ -4,8 +4,8 @@ export default {
     container.lookup("store:main").addPluralization("query", "queries");
 
     if (!String.prototype.endsWith) {
+      // eslint-disable-next-line no-extend-native
       String.prototype.endsWith = function(searchString, position) {
-        // eslint-disable-line no-extend-native
         var subjectString = this.toString();
         if (position === undefined || position > subjectString.length) {
           position = subjectString.length;

GitHub sha: 300c8622

Approved #2