disallowParenthesesAroundArrowParam

Disallows parentheses around arrow function expressions with a single parameter.

Type: Boolean

Value: true

Version: ES6

Example

"disallowParenthesesAroundArrowParam": true
Valid
[1, 2, 3].map(x => x * x);
// parentheses 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