babel-eslint
Advanced tools
Comparing version 3.1.4 to 3.1.5
@@ -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"; |
{ | ||
"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 @@ {}, |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
25006
698
9
1