eslint-plugin

@masknet/type/no-number-constructor

Disallow use Number constructor

Rule Details

:x: Incorrect

Number(input)

:white_check_mark: Correct

Number.parseInt(input)
Number.parseFloat(input)

Attributes