Disable the unicorn/prefer-number-properties
rule
#232
Replies: 3 comments 1 reply
-
ECMAScript 2015 moved globals onto the Number constructor for consistency and to slightly improve them. This rule enforces their usage to limit the usage of globals:
Please see the documentation of the rule. |
Beta Was this translation helpful? Give feedback.
-
Why would we keep legacy (and likely at some point deprecated) methods, while we can also use the newer (better) versions? If the only reason is to not have to |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
There is a proposal to disable the
unicorn/prefer-number-properties
rule.Beta Was this translation helpful? Give feedback.
All reactions