Socket
Socket
Sign inDemoInstall

babel-eslint

Package Overview
Dependencies
Maintainers
2
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 3.1.4 to 3.1.5

3

acorn-to-esprima.js

@@ -26,2 +26,3 @@ var traverse = require("babel-core").traverse;

type === tt.exponent || type === tt.prefix ||
type === tt.doubleColon ||
type.isAssign) {

@@ -38,2 +39,4 @@ token.type = "Punctuator";

token.type = "JSXIdentifier";
} else if (type === tt.jsxText) {
token.type = "JSXText";
} else if (type.keyword === "null") {

@@ -40,0 +43,0 @@ token.type = "Null";

2

package.json
{
"name": "babel-eslint",
"version": "3.1.4",
"version": "3.1.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -157,2 +157,18 @@ var babelEslint = require("..");

it("jsx expression with spread", function () {
parseAndAssertSame("var myDivElement = <div {...this.props} />;");
});
it("empty jsx text", function () {
parseAndAssertSame("<a></a>");
});
it("jsx text with content", function () {
parseAndAssertSame("<a>Hello, world!</a>");
});
it("nested jsx", function () {
parseAndAssertSame("<div>\n<h1>Wat</h1>\n</div>");
});
it("default import", function () {

@@ -159,0 +175,0 @@ parseAndAssertSame('import foo from "foo";');

@@ -127,4 +127,12 @@ /*eslint-env mocha*/

it("type cast expression", function () {
it("flow type", function () {
verifyAndAssertMessages(
"type SomeNewType = any;",
{},
[]
);
});
it("type cast expression #102", function () {
verifyAndAssertMessages(
"for (let a of (a: Array)) {}",

@@ -131,0 +139,0 @@ {},

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