From: moisseev Date: Mon, 20 Nov 2023 11:00:56 +0000 (+0300) Subject: [Minor] Use multiple variable declarations X-Git-Tag: 3.8.0~55^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5667878f06839c25fd6867d7ec3ef5b22bdccf84;p=thirdparty%2Frspamd.git [Minor] Use multiple variable declarations --- diff --git a/.eslintrc.json b/.eslintrc.json index 3a7eb3f0b9..bac88d2480 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -32,7 +32,7 @@ "no-plusplus": "off", "no-ternary": "off", "object-shorthand": "off", - "one-var": "off", + "one-var": ["error", { "initialized": "never" }], "prefer-arrow-callback": "off", "prefer-destructuring": "off", "prefer-named-capture-group": "off", @@ -71,9 +71,7 @@ "no-invalid-this": "off", "prefer-exponentiation-operator": "off", "sort-keys": "off", - "sort-vars": "off", - "@stylistic/function-paren-newline": "off", - "@stylistic/one-var-declaration-per-line": "off" + "@stylistic/function-paren-newline": "off" } } diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index ac9f1f23b2..61ce4c56a9 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -658,7 +658,8 @@ function ($, NProgress) { }, $create: function () { this._super(); - const self = this, $form_grp = $("
", { + const self = this; + const $form_grp = $("
", { class: "form-group d-inline-flex align-items-center" }).append($("