WebUI: ensure consistent shorthand syntax

This commit is contained in:
Chocobo1 2025-04-17 19:29:26 +08:00
commit 1077cbba2b
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
2 changed files with 3 additions and 2 deletions

View file

@ -34,6 +34,7 @@ export default [
"no-undef": "off", "no-undef": "off",
"no-unused-vars": "off", "no-unused-vars": "off",
"no-var": "error", "no-var": "error",
"object-shorthand": ["error", "consistent"],
"operator-assignment": "error", "operator-assignment": "error",
"prefer-arrow-callback": "error", "prefer-arrow-callback": "error",
"prefer-const": "error", "prefer-const": "error",

View file

@ -22,7 +22,7 @@ window.qBittorrent.MultiRename ??= (() => {
// Search Options // Search Options
_inner_search: "", _inner_search: "",
setSearch(val) { setSearch: function(val) {
this._inner_search = val; this._inner_search = val;
this._inner_update(); this._inner_update();
this.onChanged(this.matchedFiles); this.onChanged(this.matchedFiles);
@ -33,7 +33,7 @@ window.qBittorrent.MultiRename ??= (() => {
// Replacement Options // Replacement Options
_inner_replacement: "", _inner_replacement: "",
setReplacement(val) { setReplacement: function(val) {
this._inner_replacement = val; this._inner_replacement = val;
this._inner_update(); this._inner_update();
this.onChanged(this.matchedFiles); this.onChanged(this.matchedFiles);