mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
WebUI: ensure consistent shorthand syntax
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user