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:
Anders Kaseorg
2020-10-07 00:17:30 -07:00
committed by Tim Abbott
parent 9bfbb29763
commit fb233bd994
54 changed files with 160 additions and 149 deletions

View File

@@ -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) {