convert playground assignment operators - fixes babel/babel-eslint#40

This commit is contained in:
Sebastian McKenzie 2015-03-11 00:15:07 +11:00
parent 64b63e44bf
commit 24eef21756

View File

@ -61,6 +61,14 @@ var astTransformVisitor = {
return node.argument; return node.argument;
} }
// playground
if (t.isAssignmentExpression(node)) {
if (node.operator === "||=" || node.operator === "?=") {
node.operator = "+=";
}
}
// modules // modules
if (t.isImportDeclaration(node)) { if (t.isImportDeclaration(node)) {