DEV: linting

DEV: linting

diff --git a/assets/javascripts/discourse/widgets/alert-receiver.js.es6 b/assets/javascripts/discourse/widgets/alert-receiver.js.es6
index 85b957c..985f71b 100644
--- a/assets/javascripts/discourse/widgets/alert-receiver.js.es6
+++ b/assets/javascripts/discourse/widgets/alert-receiver.js.es6
@@ -41,7 +41,9 @@ createWidget("alert-receiver-data", {
 
     STATUS_NAMES.forEach((statusName) => {
       const groupedByDc = groupedByStatus[statusName];
-      if (!groupedByDc) return;
+      if (!groupedByDc) {
+        return;
+      }
 
       const headerContent = [];
       if (STATUS_EMOJIS[statusName]) {
@@ -53,7 +55,9 @@ createWidget("alert-receiver-data", {
       headerContent.push(I18n.t(`prom_alert_receiver.headers.${statusName}`));
       content.push(h("h2", {}, headerContent));
 
-      if (statusCounts[statusName] > COLLAPSE_THRESHOLD) collapsed = true;
+      if (statusCounts[statusName] > COLLAPSE_THRESHOLD) {
+        collapsed = true;
+      }
 
       Object.entries(groupedByDc).forEach(([dcName, alerts]) => {
         const table = this.attach("alert-receiver-table", {
@@ -75,10 +79,14 @@ createWidget("alert-receiver-data", {
 createWidget("alert-receiver-date", {
   tagName: "span.alert-receiver-date",
   html(attrs) {
-    if (!attrs.timestamp) return;
+    if (!attrs.timestamp) {
+      return;
+    }
 
     const splitTimestamp = attrs.timestamp.split("T");
-    if (!splitTimestamp.length === 2) return;
+    if (!splitTimestamp.length === 2) {
+      return;
+    }
 
     const date = splitTimestamp[0];
     const time = splitTimestamp[1];
@@ -101,7 +109,9 @@ createWidget("alert-receiver-date", {
 
     dateElement.textContent = attrs.timestamp;
 
-    if ($().applyLocalDates) $(dateElement).applyLocalDates();
+    if ($().applyLocalDates) {
+      $(dateElement).applyLocalDates();
+    }
 
     return new RawHtml({ html: dateElement.outerHTML });
   },
@@ -111,7 +121,9 @@ createWidget("alert-receiver-date-range", {
   tagName: "span",
   html(attrs) {
     const content = [];
-    if (!attrs.startsAt) return;
+    if (!attrs.startsAt) {
+      return;
+    }
 
     content.push(
       this.attach("alert-receiver-date", { timestamp: attrs.startsAt })
@@ -149,7 +161,9 @@ createWidget("alert-receiver-row", {
 
   buildLogsUrl(attrs) {
     const base = attrs.alert.logs_url;
-    if (!base) return;
+    if (!base) {
+      return;
+    }
     const start = attrs.alert.starts_at;
     const end = attrs.alert.ends_at || new Date().toISOString();
     return `${base}#/discover?_g=(time:(from:'${start}',mode:absolute,to:'${end}'))`;
@@ -157,7 +171,9 @@ createWidget("alert-receiver-row", {
 
   buildGraphUrl(attrs) {
     const base = attrs.alert.graph_url;
-    if (!base) return;
+    if (!base) {
+      return;
+    }
     const url = new URL(base);
 
     const start = new Date(attrs.alert.starts_at);
@@ -178,7 +194,9 @@ createWidget("alert-receiver-row", {
 
   buildGrafanaUrl(attrs) {
     const base = attrs.alert.grafana_url;
-    if (!base) return;
+    if (!base) {
+      return;
+    }
     const url = new URL(base);
 
     const start = new Date(attrs.alert.starts_at);
@@ -201,7 +219,9 @@ createWidget("alert-receiver-row", {
       val.starts_at.split("T")[1]
     } displayedTimezone=UTC format="YYYY-MM-DD HH:mm"]`;
 
-    if (val.description) alertString += ` - ${val.description}`;
+    if (val.description) {
+      alertString += ` - ${val.description}`;
+    }
 
     this.appEvents.trigger("alerts:quote-alert", alertString);
   },
@@ -253,7 +273,9 @@ createWidget("alert-receiver-collapse-toggle", {
 
   buildClasses(attrs) {
     let classString = "alert-receiver-collapse-toggle";
-    if (attrs.collapsed) classString += " collapsed";
+    if (attrs.collapsed) {
+      classString += " collapsed";
+    }
     return classString;
   },
 
diff --git a/package.json b/package.json
index 9df2b90..c540b67 100644
--- a/package.json
+++ b/package.json
@@ -2,6 +2,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 aece863..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"

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

GitHub sha: 78fb254b