eslint-plugin-ramda
eslint-plugin-ramda copied to clipboard
False positive ramda/cond-simplification
const entityTypeMapper = (...pairs) =>
R.cond([
...pairs.map(([from, to]) => [R.propEq('type', from), R.assoc('type', to)]),
[R.T, R.identity],
]);
ESLint config extended from plugin:ramda/recommended
I know nothing about the eslint plugin, so I can't speak to why this generates a warning, but I do want to say that this is a slick piece of code!