Enable radix
Require Radix Parameter (radix) When using the parseInt() function it is common to omit the second argument, the radix, and let the function try to determine from the first argument what type of number it is. By default, parseInt() will autodetect decimal and hexadecimal (via 0x prefix). Prior to ECMAScript 5, parseInt() also autodetected octal literals, which caused problems because many developers assumed a leading 0 would be ignored. http://eslint.org/docs/rules/radix Change-Id: I55cd8da8ae9fd022bea697dcb2a0a3bde3921a54
This commit is contained in:
parent
2c5d458d93
commit
9f699d3c41
Loading…
Reference in New Issue