DEV: linting

DEV: linting

diff --git a/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6 b/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6
index 7f76e5b..c4598b2 100644
--- a/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6
+++ b/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6
@@ -105,10 +105,11 @@ export default {
             this.attrs.topic_key
           ) {
             const decrypted = syncGetTopicTitle(this.attrs.topic_id);
-            if (decrypted)
+            if (decrypted) {
               return `<span data-topic-id="${
                 this.attrs.topic_id
               }">${escapeExpression(decrypted)}</span>`;
+            }
           }
           return this._super(...arguments);
         },
@@ -123,7 +124,9 @@ export default {
             if (topicId && topicId[1]) {
               topicId = parseInt(topicId[1], 10);
               const decrypted = syncGetTopicTitle(topicId);
-              if (decrypted) return escapeExpression(decrypted);
+              if (decrypted) {
+                return escapeExpression(decrypted);
+              }
             }
           }
 
diff --git a/assets/javascripts/lib/base64.js.es6 b/assets/javascripts/lib/base64.js.es6
index 711eebc..8124d6b 100644
--- a/assets/javascripts/lib/base64.js.es6
+++ b/assets/javascripts/lib/base64.js.es6
@@ -28,8 +28,12 @@ export function base64ToBuffer(str) {
     let enc4 = BASE64.indexOf(str.charAt(j++));
 
     ret[i] = (enc1 << 2) | (enc2 >> 4);
-    if (enc3 !== 64) ret[i + 1] = ((enc2 & 15) << 4) | (enc3 >> 2);
-    if (enc4 !== 64) ret[i + 2] = ((enc3 & 3) << 6) | enc4;
+    if (enc3 !== 64) {
+      ret[i + 1] = ((enc2 & 15) << 4) | (enc3 >> 2);
+    }
+    if (enc4 !== 64) {
+      ret[i + 2] = ((enc3 & 3) << 6) | enc4;
+    }
   }
   /* eslint-enable no-bitwise */
 
diff --git a/assets/javascripts/lib/discourse.js.es6 b/assets/javascripts/lib/discourse.js.es6
index a516302..4921ee4 100644
--- a/assets/javascripts/lib/discourse.js.es6
+++ b/assets/javascripts/lib/discourse.js.es6
@@ -194,8 +194,12 @@ export function hasTopicKey(topicId) {
  * @param {String} title
  */
 export function putTopicTitle(topicId, title) {
-  if (!(topicId && title)) return;
-  if (topicTitles[topicId] && topicTitles[topicId].encrypted === title) return;
+  if (!(topicId && title)) {
+    return;
+  }
+  if (topicTitles[topicId] && topicTitles[topicId].encrypted === title) {
+    return;
+  }
 
   topicTitles[topicId] = new TopicTitle(topicId, title);
 }
@@ -209,7 +213,9 @@ export function putTopicTitle(topicId, title) {
  */
 export function getTopicTitle(topicId) {
   const title = topicTitles[topicId];
-  if (!title) return Promise.reject();
+  if (!title) {
+    return Promise.reject();
+  }
   return title.promise;
 }
 
@@ -222,7 +228,9 @@ export function getTopicTitle(topicId) {
  */
 export function syncGetTopicTitle(topicId) {
   const title = topicTitles[topicId];
-  if (!title) return null;
+  if (!title) {
+    return null;
+  }
   return title.result;
 }
 
diff --git a/package.json b/package.json
index 4ef1c43..ed72c23 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,6 @@
   "author": "Discourse",
   "license": "MIT",
   "devDependencies": {
-    "eslint-config-discourse": "latest"
+    "eslint-config-discourse": "^1.1.4"
   }
 }
diff --git a/yarn.lock b/yarn.lock
index b518ce3..3f25bf0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -161,9 +161,9 @@
   integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==
 
 acorn-jsx@^5.2.0:
-  version "5.2.0"
-  resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.2.0.tgz#4c66069173d6fdd68ed85239fc256226182b2ebe"
-  integrity sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ==
+  version "5.3.1"
+  resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.1.tgz#fc8661e11b7ac1539c47dbfea2e72b3af34d267b"
+  integrity sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==
 
 acorn@^7.1.1:
   version "7.4.0"
@@ -171,9 +171,9 @@ acorn@^7.1.1:
   integrity sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==
 
 ajv@^6.10.0, ajv@^6.10.2:
-  version "6.12.4"
-  resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.4.tgz#0614facc4522127fa713445c6bfd3ebd376e2234"
-  integrity sha512-eienB2c9qVQs2KWexhkrdMLVDoIQCz5KSeLxwg9Lzk4DOfBtIK9PQwwufcsn1jjGuf9WZmqPMbGxOzfcuphJCQ==
+  version "6.12.5"
+  resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.5.tgz#19b0e8bae8f476e5ba666300387775fb1a00a4da"
+  integrity sha512-lRF8RORchjpKG50/WFf8xmg7sgCLFiYNNnqdKflk63whMQcWR5ngGjiSXkL9bjxy6B2npOK2HSMN49jEBMSkag==
   dependencies:
     fast-deep-equal "^3.1.1"
     fast-json-stable-stringify "^2.0.0"
@@ -405,11 +405,11 @@ debug@^2.6.8:
     ms "2.0.0"
 
 debug@^4.0.1, debug@^4.1.0:
-  version "4.1.1"
-  resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
-  integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
+  version "4.2.0"
+  resolved "https://registry.yarnpkg.com/debug/-/debug-4.2.0.tgz#7f150f93920e94c58f5574c2fd01a3110effe7f1"
+  integrity sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==
   dependencies:
-    ms "^2.1.1"
+    ms "2.1.2"
 
 decamelize@^1.2.0:
   version "1.2.0"
@@ -453,9 +453,9 @@ ember-template-lint-plugin-discourse@latest:
   integrity sha512-BMd5QyUCTRFgIYXlzS0yO5nfg3U4oZ/UpFEYw7KuZ/zPbTSP17g22KfbCydi4ByaP5lw3jn3Fu/dIKQ9aCuoJQ==
 
 ember-template-lint@^2.11.0:
-  version "2.11.0"
-  resolved "https://registry.yarnpkg.com/ember-template-lint/-/ember-template-lint-2.11.0.tgz#90a074bd7ef86df07dca622c70debe7bce375ff2"
-  integrity sha512-GFjrhD73vgmSgk15dfT8xwPJdUh8WzmOR2FPdN26KGbB7bB1mJREf5QD+ddgXzi0o6oFGq6A0xhowpy0RwuNIQ==
+  version "2.12.1"
+  resolved "https://registry.yarnpkg.com/ember-template-lint/-/ember-template-lint-2.12.1.tgz#718b6141b2001ca6e74764f7f59d8554a86473f4"
+  integrity sha512-LbnDoHRXGPPNPACvSAatkZVPY9jBFlobdf7I7kdvSD8/W9c2/XDDejAVhHnbWFhPn+U12bA7Lgt505Vq6D7hLw==
   dependencies:
     chalk "^4.0.0"
     ember-template-recast "^4.1.5"
@@ -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@latest:
-  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==
+eslint-config-discourse@^1.1.4:
+  version "1.1.4"
+  resolved "https://registry.yarnpkg.com/eslint-config-discourse/-/eslint-config-discourse-1.1.4.tgz#cff9f93f17dfcefe4852bb417f747c28444b4bd7"
+  integrity sha512-4Yilkkmdkz/LdEiQCbng6evI2w33HDs9lXgiae0DutjTboqs/TauQXySusxHagKr9GFtefPOxovzNKwD2s1ggw==
   dependencies:
     babel-eslint "^10.1.0"
     ember-template-lint "^2.11.0"
@@ -555,11 +555,11 @@ eslint-plugin-node@^8.0.0:
     semver "^5.5.0"
 
 eslint-scope@^5.0.0:
-  version "5.1.0"
-  resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.0.tgz#d0f971dfe59c69e0cada684b23d49dbf82600ce5"
-  integrity sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w==
+  version "5.1.1"
+  resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
+  integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==
   dependencies:
-    esrecurse "^4.1.0"
+    esrecurse "^4.3.0"
     estraverse "^4.1.1"
 
 eslint-utils@^1.3.1, eslint-utils@^1.4.2, eslint-utils@^1.4.3:

[... diff too long, it was truncated ...]

GitHub sha: 61b89e5c