Revert "DEV: enforces no-var (#62)"

Revert “DEV: enforces no-var (#62)”

This reverts commit 8610904f232560566e9872b5f8d9387ab425002d.

diff --git a/assets/javascripts/discourse/pre-initializers/extend-category-for-voting.js.es6 b/assets/javascripts/discourse/pre-initializers/extend-category-for-voting.js.es6
index a8f3deb..868be77 100644
--- a/assets/javascripts/discourse/pre-initializers/extend-category-for-voting.js.es6
+++ b/assets/javascripts/discourse/pre-initializers/extend-category-for-voting.js.es6
@@ -14,7 +14,7 @@ function initialize(api) {
         return;
       }
 
-      let buffer = [];
+      var buffer = [];
 
       let title = "";
       if (topic.user_voted) {
diff --git a/assets/javascripts/discourse/widgets/vote-box.js.es6 b/assets/javascripts/discourse/widgets/vote-box.js.es6
index 2afe2ef..c134d30 100644
--- a/assets/javascripts/discourse/widgets/vote-box.js.es6
+++ b/assets/javascripts/discourse/widgets/vote-box.js.es6
@@ -19,9 +19,9 @@ export default createWidget("vote-box", {
   },
 
   html(attrs, state) {
-    let voteCount = this.attach("vote-count", attrs);
-    let voteButton = this.attach("vote-button", attrs);
-    let voteOptions = this.attach("vote-options", attrs);
+    var voteCount = this.attach("vote-count", attrs);
+    var voteButton = this.attach("vote-button", attrs);
+    var voteOptions = this.attach("vote-options", attrs);
     let contents = [voteCount, voteButton, voteOptions];
 
     if (state.votesAlert > 0) {
@@ -54,8 +54,8 @@ export default createWidget("vote-box", {
   },
 
   addVote() {
-    let topic = this.attrs;
-    let state = this.state;
+    var topic = this.attrs;
+    var state = this.state;
     return ajax("/voting/vote", {
       type: "POST",
       data: {
@@ -80,8 +80,8 @@ export default createWidget("vote-box", {
   },
 
   removeVote() {
-    let topic = this.attrs;
-    let state = this.state;
+    var topic = this.attrs;
+    var state = this.state;
     return ajax("/voting/unvote", {
       type: "POST",
       data: {
diff --git a/assets/javascripts/discourse/widgets/vote-button.js.es6 b/assets/javascripts/discourse/widgets/vote-button.js.es6
index 40082c9..638331a 100644
--- a/assets/javascripts/discourse/widgets/vote-button.js.es6
+++ b/assets/javascripts/discourse/widgets/vote-button.js.es6
@@ -6,7 +6,7 @@ export default createWidget("vote-button", {
   tagName: "div",
 
   buildClasses(attrs) {
-    let buttonClass = "";
+    var buttonClass = "";
     if (attrs.closed) {
       buttonClass = "voting-closed";
     } else {
diff --git a/assets/javascripts/discourse/widgets/vote-options.js.es6 b/assets/javascripts/discourse/widgets/vote-options.js.es6
index dd4a063..81ae5a2 100644
--- a/assets/javascripts/discourse/widgets/vote-options.js.es6
+++ b/assets/javascripts/discourse/widgets/vote-options.js.es6
@@ -10,7 +10,7 @@ export default createWidget("vote-options", {
   },
 
   html(attrs) {
-    let contents = [];
+    var contents = [];
 
     if (attrs.user_voted) {
       contents.push(this.attach("remove-vote", attrs));
diff --git a/package.json b/package.json
index 0409466..3a51b86 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,6 @@
   "author": "Discourse",
   "license": "MIT",
   "devDependencies": {
-    "eslint-config-discourse": "^1.1.6"
+    "eslint-config-discourse": "^1.1.3"
   }
 }
diff --git a/yarn.lock b/yarn.lock
index 25b37db..c223bee 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -498,10 +498,10 @@ escape-string-regexp@^1.0.5:
   resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
   integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
 
-eslint-config-discourse@^1.1.6:
-  version "1.1.6"
-  resolved "https://registry.yarnpkg.com/eslint-config-discourse/-/eslint-config-discourse-1.1.6.tgz#3080da848de09a0e533076b817d9cf865df7d571"
-  integrity sha512-K14qBtyJJeL/5njtksnSgViuTZWk3hjO1kOTqV2iTpukeRlItfJpeOpUhkwm08SBDYEKCH2Ahn/XYWR0RZ75zA==
+eslint-config-discourse@^1.1.3:
+  version "1.1.3"
+  resolved "https://registry.yarnpkg.com/eslint-config-discourse/-/eslint-config-discourse-1.1.3.tgz#38b85e810cad72280073d659565bf25611331ac3"
+  integrity sha512-n6ZRuFPMVn+jHpszZhNQwFRsIG1mRq5LrFdbN/WNDW7ohk+iyYyLkwB8btJFms5CcfHLsiiey92EAh3oNavrpw==
   dependencies:
     babel-eslint "^10.1.0"
     ember-template-lint "^2.11.0"
@@ -511,7 +511,7 @@ eslint-config-discourse@^1.1.6:
     eslint-plugin-ember "^6.10.0"
     eslint-plugin-lodash "^7.1.0"
     eslint-plugin-node "^8.0.0"
-    prettier "2.1.2"
+    prettier "^2.1.1"
 
 eslint-plugin-discourse-ember@latest:
   version "0.0.3"
@@ -1204,10 +1204,10 @@ prelude-ls@~1.1.2:
   resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
   integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
 
-prettier@2.1.2:
-  version "2.1.2"
-  resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5"
-  integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==
+prettier@^2.1.1:
+  version "2.1.1"
+  resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.1.tgz#d9485dd5e499daa6cb547023b87a6cf51bee37d6"
+  integrity sha512-9bY+5ZWCfqj3ghYBLxApy2zf6m+NJo5GzmLTpr9FsApsfjriNnS2dahWReHMi7qNPhhHl9SYHJs2cHZLgexNIw==
 
 progress@^2.0.0:
   version "2.0.3"

GitHub sha: f422e635

:+1: