menu
decimal-bitwise-operand
Disallow opaque decimal masks in bitwise operations
Multi-digit decimal masks obscure the bit pattern used by a bitwise operation. Instead, you SHOULD write the mask in binary, hexadecimal, or octal notation.
Reported
1declare const value: uint32;2const masked = value & 240;Accepted
1declare const value: uint32;2const masked = value & 0xf0;