commit 9634c91: [Test] Unbreak ESLint
moisseev
moiseev at mezonplus.ru
Mon Jul 29 17:49:55 UTC 2024
Author: moisseev
Date: 2023-12-07 17:49:08 +0300
URL: https://github.com/rspamd/rspamd/commit/9634c91031287db0efb4885e9e016049f4d34b08 (refs/pull/4730/head)
[Test] Unbreak ESLint
---
.eslintrc.json | 3 ++-
interface/js/app/rspamd.js | 4 ++--
interface/js/app/selectors.js | 2 +-
interface/js/app/stats.js | 6 +++---
4 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/.eslintrc.json b/.eslintrc.json
index f805aff2c..6aa347e1d 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -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"
}
}
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index 1fac8b939..b1d71a5c9 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -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(() => {
diff --git a/interface/js/app/selectors.js b/interface/js/app/selectors.js
index 64d103474..2a0097e79 100644
--- a/interface/js/app/selectors.js
+++ b/interface/js/app/selectors.js
@@ -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";
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js
index 3ee0a907a..ddf641d69 100644
--- a/interface/js/app/stats.js
+++ b/interface/js/app/stats.js
@@ -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
More information about the Commits
mailing list