eslint-plugin-ramda icon indicating copy to clipboard operation
eslint-plugin-ramda copied to clipboard

False positive ramda/cond-simplification

Open anion155 opened this issue 3 years ago • 1 comments

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

anion155 avatar Mar 16 '22 18:03 anion155

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!

CrossEye avatar Mar 24 '22 14:03 CrossEye