Probably just needs a new option for requireShorthandArrowFunctions.
Consider the case:
() => { return something; }
This should trigger. But
() => { something (); }
Should not trigger.
The reason is that the latter returns undefined instead of the result of something which could have a different effect in the code calling the function.
Probably just needs a new option for requireShorthandArrowFunctions.
Consider the case:
() => { return something; }
This should trigger. But
() => { something (); }
Should not trigger.
The reason is that the latter returns undefined instead of the result of something which could have a different effect in the code calling the function.