use + instead of template string

This commit is contained in:
Amjad Masad 2015-11-24 18:58:21 -08:00
parent e4c5d9dcb3
commit e481c5b570

View File

@ -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 });
}