use + instead of template string
This commit is contained in:
parent
e4c5d9dcb3
commit
e481c5b570
@ -172,7 +172,7 @@ export function AssignmentExpression(node: Object, parent: Object) {
|
||||
t.isUnaryExpression(node.right.argument, { prefix: true, operator: "--" }) ||
|
||||
// Need spaces for operators of the same kind to avoid: `a+++b`
|
||||
t.isUnaryExpression(node.right, { prefix: true, operator: node.operator }) ||
|
||||
t.isUpdateExpression(node.right, { prefix: true, operator: `${node.operator}${node.operator}` });
|
||||
t.isUpdateExpression(node.right, { prefix: true, operator: node.operator + node.operator });
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user