mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 22:22:33 -06:00
WebUI: prefer range based for loop
Using `entries()` can also save the work of manually handling the index variable. PR #23182.
This commit is contained in:
@@ -71,6 +71,7 @@ export default [
|
||||
"Stylistic/semi": "error",
|
||||
"Stylistic/spaced-comment": ["error", "always", { exceptions: ["*"] }],
|
||||
"Unicorn/no-array-for-each": "error",
|
||||
"Unicorn/no-for-loop": "error",
|
||||
"Unicorn/no-zero-fractions": "error",
|
||||
"Unicorn/prefer-number-properties": "error",
|
||||
"Unicorn/switch-case-braces": ["error", "avoid"]
|
||||
|
||||
Reference in New Issue
Block a user