mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 06:32:29 -06:00
WebUI: disallow number literals with zero fractions or dangling dots
Javascript treats them all the same as `Number`.
This commit is contained in:
@@ -68,6 +68,7 @@ export default [
|
||||
"Stylistic/quote-props": ["error", "consistent-as-needed"],
|
||||
"Stylistic/semi": "error",
|
||||
"Stylistic/spaced-comment": ["error", "always", { exceptions: ["*"] }],
|
||||
"Unicorn/no-zero-fractions": "error",
|
||||
"Unicorn/prefer-number-properties": "error"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user