mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
eslint: Fix unicorn/prefer-number-properties.
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-number-properties.md MDN says these were added to Number for modularization of globals. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
9bfbb29763
commit
fb233bd994
@@ -28,7 +28,7 @@ class BuddyListConf {
|
||||
}
|
||||
|
||||
get_key_from_li(opts) {
|
||||
return parseInt(opts.li.expectOne().attr("data-user-id"), 10);
|
||||
return Number.parseInt(opts.li.expectOne().attr("data-user-id"), 10);
|
||||
}
|
||||
|
||||
get_data_from_keys(opts) {
|
||||
|
||||
Reference in New Issue
Block a user