requireNumericLiterals

Requires use of binary, hexadecimal, and octal literals instead of parseInt.

Type: Boolean

Value: true

Version: ES6

Example

"requireNumericLiterals": true
Valid
0b111110111 === 503;
0o767 === 503;
0x1F7 === 503;
Invalid
parseInt("111110111", 2) === 503;
parseInt("767", 8) === 503;
parseInt("1F7", 16) === 255;
Rule source
Test source