🐛 lint/useNumericLiterals
code fix doesn't handle signed numbers
#397
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
useNumericLiterals provides an incorrect code fix when the number is signed with
+
or-
.For example:
Playground.
Expected result
The rule should move the sign. For example:
Code of Conduct
The text was updated successfully, but these errors were encountered: