Fix: Add parens for unary arrow function
Fixes T7157
This commit is contained in:
@@ -204,6 +204,10 @@ export function ArrowFunctionExpression(node: Object, parent: Object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (t.isUnaryExpression(parent)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return UnaryLike(node, parent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user