Change proposal: prefer-numeric-literals should also disallow Number.parseInt #8913
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
enhancement
This change enhances an existing feature of ESLint
rule
Relates to ESLint's core rules
What rule do you want to change?
prefer-numeric-literals
Does this change cause the rule to produce more or fewer warnings?
More.
How will the change be implemented? (New option, new default behavior, etc.)?
New default behavior.
Please provide some example code that this change will affect:
What does the rule currently do for this code?
Nothing.
What will the rule do after it's changed?
Same behavior as the way
parseInt()
is handled:Disallow
Number.parseInt()
if it is called with two arguments: a string and a radix option of 2 (binary), 8 (octal), or 16 (hexadecimal).The text was updated successfully, but these errors were encountered: