]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use consistent function style
authormoisseev <moiseev@mezonplus.ru>
Mon, 20 Nov 2023 11:15:56 +0000 (14:15 +0300)
committermoisseev <moiseev@mezonplus.ru>
Mon, 20 Nov 2023 11:15:56 +0000 (14:15 +0300)
.eslintrc.json
interface/js/app/history.js

index bac88d24803bf980c9be70f3db38fb4da9fa50a0..cc08714b57a6878074143eb96d88287a977da053 100644 (file)
@@ -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",
index 5d5b9068ef0335d2edb3747d9e1851f76122cc5a..3d06f667c9e880f5304b7240a856878add9ffd7e 100644 (file)
@@ -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();