What version of Oxlint are you using?
1.60.0
What command did you run?
oxlint
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
function filterNested(allItems, group) {
return Array.from(allItems).filter(item => {
let current = item.parentElement
while (current && current !== group) {
if (current.getAttribute('aria-hidden') === 'true') {
return false
}
current = current.parentElement
}
return true
})
}
generates error:
eslint(array-callback-return): Callback for array method "Array.prototype.filter" does not return on all code paths
But all paths has return and ESLint does not report the same issue
Reproduction
What version of Oxlint are you using?
1.60.0
What command did you run?
oxlintWhat does your
.oxlintrc.json(oroxlint.config.ts) config file look like?{ "rules": { "array-callback-return": "error" } }What happened?
generates error:
But all paths has
returnand ESLint does not report the same issueReproduction