Open obrin opened 7 years ago
(array-callback-return)[http://eslint.org/docs/rules/array-callback-return]
If you're not returning on an array method callback, you're probably using it wrong.
Does this error on with the following:
const arr = [1,2,3] const addOne = (i) => i + 1 // implicit return, shouldn't error arr.map(addOne)
if example from @joshgillies passes, i'm up for it
(array-callback-return)[http://eslint.org/docs/rules/array-callback-return]
If you're not returning on an array method callback, you're probably using it wrong.