diff --git a/src/webui/www/eslint.config.mjs b/src/webui/www/eslint.config.mjs index 58ff348bf..ed4f3ab22 100644 --- a/src/webui/www/eslint.config.mjs +++ b/src/webui/www/eslint.config.mjs @@ -40,6 +40,7 @@ export default [ "prefer-const": "error", "prefer-template": "error", "radix": "error", + "require-await": "error", "PreferArrowFunctions/prefer-arrow-functions": "error", "Stylistic/no-extra-semi": "error", "Stylistic/no-mixed-operators": [ diff --git a/src/webui/www/private/downloadlimit.html b/src/webui/www/private/downloadlimit.html index d703cf79e..8f2f9da89 100644 --- a/src/webui/www/private/downloadlimit.html +++ b/src/webui/www/private/downloadlimit.html @@ -56,7 +56,7 @@ limit: limit }) }) - .then(async (response) => { + .then((response) => { if (!response.ok) return; @@ -72,7 +72,7 @@ limit: limit }) }) - .then(async (response) => { + .then((response) => { if (!response.ok) return; diff --git a/src/webui/www/private/newtag.html b/src/webui/www/private/newtag.html index a8067fecc..8287c5ef3 100644 --- a/src/webui/www/private/newtag.html +++ b/src/webui/www/private/newtag.html @@ -64,7 +64,7 @@ tags: tagName }) }) - .then(async (response) => { + .then((response) => { if (!response.ok) return; @@ -83,7 +83,7 @@ tags: tagName }) }) - .then(async (response) => { + .then((response) => { if (!response.ok) return; diff --git a/src/webui/www/private/scripts/cache.js b/src/webui/www/private/scripts/cache.js index 3b93c8757..999a5db2d 100644 --- a/src/webui/www/private/scripts/cache.js +++ b/src/webui/www/private/scripts/cache.js @@ -53,7 +53,7 @@ window.qBittorrent.Cache ??= (() => { class BuildInfoCache { #m_store = {}; - async init() { + init() { return fetch("api/v2/app/buildInfo", { method: "GET", cache: "no-store" @@ -80,7 +80,7 @@ window.qBittorrent.Cache ??= (() => { // onFailure: () => {}, // onSuccess: () => {} // } - async init(obj = {}) { + init(obj = {}) { return fetch("api/v2/app/preferences", { method: "GET", cache: "no-store" @@ -153,7 +153,7 @@ window.qBittorrent.Cache ??= (() => { class QbtVersionCache { #m_store = ""; - async init() { + init() { return fetch("api/v2/app/version", { method: "GET", cache: "no-store" diff --git a/src/webui/www/private/shareratio.html b/src/webui/www/private/shareratio.html index b106e72b8..726fbed29 100644 --- a/src/webui/www/private/shareratio.html +++ b/src/webui/www/private/shareratio.html @@ -108,7 +108,7 @@ inactiveSeedingTimeLimit: inactiveSeedingTimeLimitValue }) }) - .then(async (response) => { + .then((response) => { if (!response.ok) return;