prefer-number-properties
Configuration
rslint.config.ts
Rule Details
Prefer Number static properties and methods over global number-related
properties and functions.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
checkInfinity
Type: boolean
Default: false
When true, the rule also checks global Infinity and -Infinity.
Examples of incorrect code for this option:
Examples of correct code for this option:
checkNaN
Type: boolean
Default: true
When false, the rule does not check global NaN.
Examples of correct code for this option: