no-array-filter-map
HintAvoid .filter().map() and .map().filter() on arrays. Without type information, objects with similar methods also match.
const emails = users.filter((user) => user.active).map((user) => user.email);const found = users.map(lookup).filter((value) => value !== undefined);const emails = users.values() .filter((user) => user.active) .map((user) => user.email) .toArray();const emails = users.flatMap((user) => user.active ? [user.email] : []);How to fix
Use iterator helpers (array.values().filter(...).map(...).toArray()), a single flatMap, or a loop that pushes into one array.
The rule does not check types, so it also reports objects with similar methods.