Commits
Click on a commit to change the comparison rangefix(linter/unicorn): fix `prefer-array-some` autofix for `.filter().length` pattern
The autofix was incorrectly transforming:
`array.filter(fn).length > 0` → `array.some(fn).length > 0`
This is broken code because `.some()` returns a boolean, not an array.
Accessing `.length` on a boolean yields `undefined`.
The fix now correctly removes the `.length > 0` comparison:
`array.filter(fn).length > 0` → `array.some(fn)`
Closes #18150