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

`collection-ordering`: Require same number of iteratees and orders

Open garyking opened this issue 5 years ago • 0 comments

In the collection-ordering rule, for sortBy and orderBy, perhaps require that there be the same number of iteratees and orders?

So, in _.orderBy(items, ['a', 'b'], ['asc']), there would be an error, since there's two iteratees, but only one order.

garyking avatar Apr 28 '20 18:04 garyking