]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Unbreak ESLint 4730/head
authormoisseev <moiseev@mezonplus.ru>
Thu, 7 Dec 2023 14:49:08 +0000 (17:49 +0300)
committermoisseev <moiseev@mezonplus.ru>
Thu, 7 Dec 2023 14:49:08 +0000 (17:49 +0300)
.eslintrc.json
interface/js/app/rspamd.js
interface/js/app/selectors.js
interface/js/app/stats.js

index f805aff2cf80829a9eac99946e0e7306bb52621a..6aa347e1d933e2b55917224f413723fdd033b47f 100644 (file)
@@ -67,6 +67,7 @@
         "no-invalid-this": "off",
         "sort-keys": "off",
 
-        "@stylistic/function-paren-newline": "off"
+        "@stylistic/function-paren-newline": "off",
+        "@stylistic/indent-binary-ops": "off"
     }
 }
index 1fac8b939890c97a1011a7a21372a4f7c28edb1a..b1d71a5c941aa4ce8cc5925343e779ed880f4a9a 100644 (file)
@@ -345,8 +345,8 @@ define(["jquery", "nprogress", "stickytabs", "visibility",
 
     function alertMessage(alertClass, alertText) {
         const a = $("<div class=\"alert " + alertClass + " alert-dismissible fade in show\">" +
-                "<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" title=\"Dismiss\"></button>" +
-                "<strong>" + alertText + "</strong>");
+            "<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" title=\"Dismiss\"></button>" +
+            "<strong>" + alertText + "</strong>");
         $(".notification-area").append(a);
 
         setTimeout(() => {
index 64d103474c9620a62304d79140dc033a18140ee0..2a0097e79c1b30b21f4acd5b9ce148d77cb98355 100644 (file)
@@ -96,7 +96,7 @@ define(["jquery", "app/rspamd"],
             $("#sidebar-" + side).toggleClass("collapsed");
             let contentClass = "col-lg-6";
             const openSidebarsCount = $("#sidebar-left").hasClass("collapsed") +
-                    $("#sidebar-right").hasClass("collapsed");
+                $("#sidebar-right").hasClass("collapsed");
             switch (openSidebarsCount) {
                 case 1:
                     contentClass = "col-lg-9";
index 3ee0a907a512855c3732ecc7ee6ed93765bb7005..ddf641d69ad6325f5741bcb1caec893a2254be6b 100644 (file)
@@ -70,9 +70,9 @@ define(["jquery", "app/rspamd", "d3pie", "d3"],
                     const c = (typeof cls === "undefined") ? "" : cls;
                     const titleAtt = d3.format(",")(v) + " " + k;
                     return '<div class="card stat-box d-inline-block text-center shadow-sm me-3 px-3">' +
-                      '<div class="widget overflow-hidden p-2' + c + '" title="' + titleAtt +
-                      '"><strong class="d-block mt-2 mb-1 fw-bold">' +
-                    d3.format(".3~s")(v) + "</strong>" + k + "</div></div>";
+                        '<div class="widget overflow-hidden p-2' + c + '" title="' + titleAtt +
+                        '"><strong class="d-block mt-2 mb-1 fw-bold">' +
+                        d3.format(".3~s")(v) + "</strong>" + k + "</div></div>";
                 }
 
                 if (i === "auth" || i === "error") return; // Skip to the next iteration