When using [R.map
] and [R.flat
], it can be more concise to use [R.flatMap
] instead.
This rule takes no arguments.
The following patterns are considered warnings:
t = R.flat(R.map(a, f));
The following patterns are not considered warnings:
t = R.map(a, f);
t = R.flatMap(a, f);
If you do not want to enforce using [R.flatMap
], and prefer [R.map
] and [R.flat
] instead, you should not use this rule.