babel-eslint
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -32,3 +32,3 @@ var tokTypes = require("babel").acorn.tokTypes; | ||
node.kind = "init"; | ||
node.computed = false; | ||
node.computed = true; | ||
node.key = node.value = node.argument; | ||
@@ -49,2 +49,6 @@ delete node.argument; | ||
if (t.isAwaitExpression(node)) { | ||
node.type = "YieldExpression"; | ||
} | ||
// classes | ||
@@ -94,4 +98,14 @@ | ||
node.type = "FunctionExpression"; | ||
if (node.body.type !== "BlockStatement") { | ||
node.body = t.inherits(t.blockStatement([ | ||
node.body | ||
]), node); | ||
} | ||
} | ||
if (t.isFunction(node) && node.async) { | ||
node.generator = true; | ||
node.async - false; | ||
} | ||
} | ||
}; |
{ | ||
"name": "babel-eslint", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"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
7994
8
170