Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-eslint

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-eslint - npm Package Compare versions

Comparing version 2.0.0 to 2.0.2

7

acorn-to-esprima.js

@@ -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 },
[]
);
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc