(fixable) The --fix
option on the command line automatically fixes problems reported by this rule.
This rule aims to flag argument lists which don't have parens. The arrow function is able to not have parens for its argument list.
This rule ignores arrow functions that there is a open paren before itself.
const twice = x => 2 * x;
const obj = {
twich: x => 2 * x
};
p.then(x => 2 * x, err => console.error(err));
const twice = (x) => 2 * x;
const twice = (x => 2 * x);
const obj = {
twich: (x) => 2 * x
};
const obj2 = {
twich: (x => 2 * x)
};
xs.map(x => 2 * x);
p.then(x => 2 * x, (err) => console.error(err));