requireShorthandArrowFunctions

Require arrow functions to use an expression body when returning a single statement (no block statement, implicit return).

Type: Boolean

Value: true

Version: ES6

Example

"requireShorthandArrowFunctions": true
Valid
// single expression
evens.map(v => v + 1);
// multiple statments require a block
evens.map(v => {
    v = v + 1;
    return v;
});
Invalid
evens.map(v => { return v + 1; });
Rule source
Test source