Disable the unicorn/prefer-number-properties
rule
#232
leroykorterink
started this conversation in
General
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.
0 replies
-
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.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is a proposal to disable the
unicorn/prefer-number-properties
rule.Beta Was this translation helpful? Give feedback.
All reactions