From: moisseev Date: Thu, 7 Dec 2023 14:49:08 +0000 (+0300) Subject: [Test] Unbreak ESLint X-Git-Tag: 3.8.0~44^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4730%2Fhead;p=rspamd.git [Test] Unbreak ESLint --- 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 = $("
" + - "" + - "" + alertText + ""); + "" + + "" + alertText + ""); $(".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 '
' + - '
' + - d3.format(".3~s")(v) + "" + k + "
"; + '
' + + d3.format(".3~s")(v) + "" + k + "
"; } if (i === "auth" || i === "error") return; // Skip to the next iteration