requireParenthesesAroundArrowParam

Requires parentheses around arrow function expressions with a single parameter.

Type: Boolean

Value: true

Version: ES6

Example

"requireParenthesesAroundArrowParam": true
Valid
[1, 2, 3].map((x) => x * x);
// params are always required for multiple parameters
[1, 2, 3].map((x, y, z) => x * x);
Invalid
[1, 2, 3].map(x => x * x);
Rule source
Test source