babel-eslint
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -22,2 +22,6 @@ var tokTypes = require("babel").acorn.tokTypes; | ||
function isCompatTag(tagName) { | ||
return tagName && /^[a-z]|\-/.test(tagName); | ||
} | ||
var astTransformVisitor = { | ||
@@ -57,4 +61,6 @@ noScope: true, | ||
return t.inherits(t.thisExpression(), node); | ||
} else if (!t.isJSXAttribute(parent) && !isCompatTag(node.name)) { | ||
node.type = "Identifier"; | ||
} else { | ||
node.type = "Identifier"; | ||
// just ignore this node as it'd be something like <div> or an attribute name | ||
} | ||
@@ -61,0 +67,0 @@ } |
var acornToEsprima = require("./acorn-to-esprima"); | ||
var traverse = require("babel").traverse; | ||
var extend = require("lodash/object/extend"); | ||
var assign = require("lodash.assign"); | ||
var Module = require("module"); | ||
@@ -36,3 +36,3 @@ var acorn = require("babel").acorn; | ||
var estraverse = escopeMod.require("estraverse"); | ||
extend(estraverse.VisitorKeys, t.VISITOR_KEYS); | ||
assign(estraverse.VisitorKeys, t.VISITOR_KEYS); | ||
@@ -77,3 +77,3 @@ // monkeypatch escope | ||
} | ||
throw err; | ||
@@ -80,0 +80,0 @@ } |
{ | ||
"name": "babel-eslint", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"babel": "^4.6.0", | ||
"lodash": "^3.3.1" | ||
"lodash.assign": "^3.0.0" | ||
}, | ||
@@ -15,0 +15,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", |
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
7305
151
+ Addedlodash.assign@^3.0.0
+ Addedlodash._baseassign@3.2.0(transitive)
+ Addedlodash._basecopy@3.0.1(transitive)
+ Addedlodash._bindcallback@3.0.1(transitive)
+ Addedlodash._createassigner@3.1.1(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash._isiterateecall@3.0.9(transitive)
+ Addedlodash.assign@3.2.0(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.keys@3.1.2(transitive)
+ Addedlodash.restparam@3.6.1(transitive)
- Removedlodash@^3.3.1