forked from jscs-dev/node-jscs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
requireNumericLiterals: miss if first argument is an Identifier
Prior to this fix, the following would trigger an error: ``` let foo = '123'; parseInt(foo, 16); ``` After this change, an error is only triggered when using an actual literal (as intended and indicated by the rule name) Closes jscs-devgh-2133
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters