"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",
"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"
}
}
},
$create: function () {
this._super();
- const self = this, $form_grp = $("<div/>", {
+ const self = this;
+ const $form_grp = $("<div/>", {
class: "form-group d-inline-flex align-items-center"
}).append($("<label/>", {
class: "sr-only",
},
$create: function () {
this._super();
- const self = this, $form_grp = $("<div/>", {
+ const self = this;
+ const $form_grp = $("<div/>", {
class: "form-group"
}).append($("<label/>", {
class: "sr-only",
});
},
_onStatusDropdownChanged: function (e) {
- const self = e.data.self, selected = $(this).val();
+ const self = e.data.self;
+ const selected = $(this).val();
if (selected !== self.def) {
self.addFilter("group", selected, ["group"]);
} else {