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:
Diana Whitten 2015-08-27 16:45:22 -07:00
parent 2c5d458d93
commit 9f699d3c41
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ rules:
# Require use of the second argument for parseInt()
# http://eslint.org/docs/rules/radix
radix: 0 # TODO(krotscheck): Discuss & Activate
radix: 2
# Requires to declare all vars on top of their containing scope
#