oxc/number-arg-out-of-range
oxc plugin · correctness
{
"rules": {
"oxc/number-arg-out-of-range": "error"
}
}Checks whether the radix or precision arguments of number-related functions exceed the limit.
var x = 42;
var s_radix_64 = x.toString(64);
var s = x.toString(1);var x = 42;
var s_radix_16 = x.toString(16);Examples from the Oxlint documentation.
ESLint does not have this rule.
oxc/number-arg-out-of-range
oxc plugin · correctness
{
"rules": {
"oxc/number-arg-out-of-range": "error"
}
}nursery/noNumberArgumentOutOfRange
nursery · since 2.6.6
{
"linter": {
"rules": {
"nursery": {
"noNumberArgumentOutOfRange": "error"
}
}
}
}Checks whether the throw keyword is missing in front of a new expression.
This rule applies when an Array function has a callback argument used for an array with empty slots.
Checks for redundant or logically impossible comparisons. This includes: - Ineffective double comparisons against constants. - Impossible comparisons involving constants. - Redundant comparisons where both operands are the same (e.g., a < a).
This rule warns when the replaceAll method is called with a regular expression that does not have the global flag (g).
Checks for comparisons between object and array literals.