Closed iilei closed 8 years ago
requireShorthandArrowFunctions
is good but disallowParenthesesAroundArrowParam
isn't, since that rule is strict, whereas this -
[1, 2, 3].map((number) => {
const nextNumber = number + 1;
return `A string containing the ${nextNumber}.`;
});
is allowed. /cc @hzoo
Thank you!
See rule #8.2