oxc/uninvoked-array-callback
oxc plugin · correctness
{
"rules": {
"oxc/uninvoked-array-callback": "error"
}
}This rule applies when an Array function has a callback argument used for an array with empty slots.
const list = new Array(5).map(_ => createElement());const list = new Array(5).fill().map(_ => createElement());Examples from the Oxlint documentation.
ESLint does not have this rule.
oxc/uninvoked-array-callback
oxc plugin · correctness
{
"rules": {
"oxc/uninvoked-array-callback": "error"
}
}nursery/noUninvokedArrayCallback
nursery · since 2.6.6
{
"linter": {
"rules": {
"nursery": {
"noUninvokedArrayCallback": "error"
}
}
}
}Checks whether the radix or precision arguments of number-related functions exceed the limit.
Checks whether the throw keyword is missing in front of a new expression.
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.