convert playground assignment operators - fixes babel/babel-eslint#40
This commit is contained in:
parent
64b63e44bf
commit
24eef21756
@ -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)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user