WebUI: migrate away from outdated config in ESLint

The following message appears when using the outdated value:
>[@stylistic/eslint-plugin]: You are using deprecated value(boolean) for "allowTemplateLiterals"
>in "quotes", please use "always"/"never" instead.

Also prefer using double quotes over backticks for strings.

PR #23038.
This commit is contained in:
Chocobo1
2025-07-28 04:33:50 +08:00
committed by GitHub
parent eb84e99866
commit 2c6c61cc79
5 changed files with 13 additions and 13 deletions

View File

@@ -98,8 +98,8 @@
document.getElementById("limitUpdateLabel").textContent =
isUpload
? `QBT_TR(Upload limit:)QBT_TR[CONTEXT=SpeedLimit]`
: `QBT_TR(Download limit:)QBT_TR[CONTEXT=SpeedLimit]`;
? "QBT_TR(Upload limit:)QBT_TR[CONTEXT=SpeedLimit]"
: "QBT_TR(Download limit:)QBT_TR[CONTEXT=SpeedLimit]";
fetch(`api/v2/transfer/${getLimitMethod}`, {
method: "GET",