From: moisseev Date: Mon, 20 Nov 2023 11:15:56 +0000 (+0300) Subject: [Minor] Use consistent function style X-Git-Tag: 3.8.0~55^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8cd1edebce5a60d3c67b31b15cc930d4d64dc57;p=thirdparty%2Frspamd.git [Minor] Use consistent function style --- diff --git a/.eslintrc.json b/.eslintrc.json index bac88d2480..cc08714b57 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -18,7 +18,7 @@ "capitalized-comments": "off", "curly": ["error", "multi-line"], "func-names": "off", - // "func-style": ["error", "declaration"], + "func-style": ["error", "declaration"], "id-length": ["error", { "min": 1 }], "line-comment-position": "off", "logical-assignment-operators": ["error", "never"], @@ -65,7 +65,6 @@ // Temporarily disabled rules - "func-style": "off", "max-lines": "off", "max-lines-per-function": "off", "no-invalid-this": "off", diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 5d5b9068ef..3d06f667c9 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -33,9 +33,7 @@ define(["jquery", "app/rspamd", "d3", "footable"], function process_history_legacy(data) { const items = []; - const compare = function (e1, e2) { - return e1.name.localeCompare(e2.name); - }; + function compare(e1, e2) { return e1.name.localeCompare(e2.name); } $("#selSymOrder_history, label[for='selSymOrder_history']").hide();