babel-eslint
Advanced tools
Comparing version 2.0.0 to 2.0.2
@@ -42,2 +42,3 @@ var tokTypes = require("babel-core").acorn.tokTypes; | ||
exports.toAST = function (ast) { | ||
ast.sourceType = "module"; | ||
traverse(ast, astTransformVisitor); | ||
@@ -89,3 +90,3 @@ }; | ||
} | ||
} else if (t.isExportBatchSpecifier(node.specifiers[0])) { | ||
} else if (node.specifiers && t.isExportBatchSpecifier(node.specifiers[0])) { | ||
node.type = "ExportAllDeclaration"; | ||
@@ -99,3 +100,3 @@ delete node.specifiers; | ||
} | ||
if (t.isExportSpecifier(node)) { | ||
@@ -139,3 +140,3 @@ node.local = node.id; | ||
// functions | ||
if (t.isFunction(node)) { | ||
@@ -142,0 +143,0 @@ node.defaults = []; |
{ | ||
"name": "babel-eslint", | ||
"version": "2.0.0", | ||
"version": "2.0.2", | ||
"description": "", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"babel-core": "^4.6.0", | ||
"babel-core": "^4.7.8", | ||
"lodash.assign": "^3.0.0" | ||
@@ -14,0 +14,0 @@ }, |
@@ -21,3 +21,3 @@ # babel-eslint [![Build Status][travis-image]][travis-url] | ||
```sh | ||
$ npm install eslint babel-eslint | ||
$ npm install -g eslint babel-eslint | ||
``` | ||
@@ -24,0 +24,0 @@ |
@@ -143,2 +143,10 @@ /*eslint-env mocha*/ | ||
}); | ||
it("class usage", function () { | ||
verifyAndAssertMessages( | ||
"class Lol {} module.exports = Lol;", | ||
{ "no-unused-vars": 1 }, | ||
[] | ||
); | ||
}); | ||
}); |
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
17385
457
Updatedbabel-core@^4.7.8