babel-jscs
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -189,20 +189,7 @@ var traverse = require("babel-core").traverse; | ||
if (this.isSpreadProperty()) { | ||
node.type = "Property"; | ||
node.kind = "init"; | ||
node.computed = true; | ||
node.type = "SpreadProperty"; | ||
node.key = node.value = node.argument; | ||
delete node.argument; | ||
} | ||
if (this.isRestElement()) { | ||
return node.argument; | ||
} | ||
// flow | ||
if (this.isTypeCastExpression()) { | ||
return node.expression; | ||
} | ||
// modules | ||
if (this.isImportDeclaration()) { | ||
@@ -228,7 +215,2 @@ delete node.isType; | ||
// classes | ||
if (this.isReferencedIdentifier({ name: "super" })) { | ||
return t.inherits(t.thisExpression(), node); | ||
} | ||
if (this.isClassProperty()) { | ||
@@ -242,3 +224,2 @@ delete node.key; | ||
if (node.async) node.generator = true; | ||
delete node.async; | ||
} | ||
@@ -245,0 +226,0 @@ |
{ | ||
"name": "babel-jscs", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14734
302