babel-eslint
Advanced tools
Comparing version 3.1.8 to 3.1.9
@@ -178,3 +178,3 @@ var traverse = require("babel-core").traverse; | ||
exit: function (node, parent) { | ||
if (t.isSpreadProperty(node)) { | ||
if (this.isSpreadProperty()) { | ||
node.type = "Property"; | ||
@@ -187,11 +187,11 @@ node.kind = "init"; | ||
if (t.isTypeCastExpression(node)) { | ||
if (this.isTypeCastExpression()) { | ||
return node.expression; | ||
} | ||
if (t.isFlow(node)) { | ||
if (this.isFlow()) { | ||
return this.remove(); | ||
} | ||
if (t.isRestElement(node)) { | ||
if (this.isRestElement()) { | ||
return node.argument; | ||
@@ -202,10 +202,11 @@ } | ||
if (t.isImportDeclaration(node)) { | ||
if (this.isImportDeclaration()) { | ||
delete node.isType; | ||
} | ||
if (t.isExportDeclaration(node)) { | ||
if (t.isClassExpression(node.declaration)) { | ||
if (this.isExportDeclaration(node)) { | ||
var declar = this.get("declaration"); | ||
if (declar.isClassExpression()) { | ||
node.declaration.type = "ClassDeclaration"; | ||
} else if (t.isFunctionExpression(node.declaration)) { | ||
} else if (declar.isFunctionExpression()) { | ||
node.declaration.type = "FunctionDeclaration"; | ||
@@ -217,7 +218,7 @@ } | ||
if (t.isReferencedIdentifier(node, parent, { name: "super" })) { | ||
if (this.isReferencedIdentifier({ name: "super" })) { | ||
return t.inherits(t.thisExpression(), node); | ||
} | ||
if (t.isClassProperty(node)) { | ||
if (this.isClassProperty()) { | ||
delete node.key; | ||
@@ -228,3 +229,3 @@ } | ||
if (t.isFunction(node)) { | ||
if (this.isFunction()) { | ||
if (node.async) node.generator = true; | ||
@@ -234,3 +235,3 @@ delete node.async; | ||
if (t.isAwaitExpression(node)) { | ||
if (this.isAwaitExpression()) { | ||
node.type = "YieldExpression"; | ||
@@ -243,3 +244,3 @@ node.delegate = node.all; | ||
if (t.isTemplateLiteral(node)) { | ||
if (this.isTemplateLiteral()) { | ||
node.quasis.forEach(function (q) { | ||
@@ -246,0 +247,0 @@ q.range[0] -= 1; |
{ | ||
"name": "babel-eslint", | ||
"version": "3.1.8", | ||
"version": "3.1.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30430
10
863