add ArrowFunctionExpression parentheses logic
This commit is contained in:
parent
7012116f4e
commit
370b7913b4
@ -163,6 +163,10 @@ export function FunctionExpression(node: Object, parent: Object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
return ArrowFunctionExpression(node, parent);
|
||||
}
|
||||
|
||||
export function ArrowFunctionExpression(node: Object, parent: Object): boolean {
|
||||
// export default (function () {});
|
||||
if (t.isExportDeclaration(parent)) {
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user