eslint-plugin-react
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -23,5 +23,6 @@ /** | ||
function hasChildren(node) { | ||
var childrens = node.parent.children; | ||
if ( | ||
!node.parent.children.length || | ||
(node.parent.children[0].type === 'Literal' && !node.parent.children[0].value.trim()) | ||
!childrens.length || | ||
(childrens.length === 1 && childrens[0].type === 'Literal' && !childrens[0].value.trim()) | ||
) { | ||
@@ -28,0 +29,0 @@ return false; |
{ | ||
"name": "eslint-plugin-react", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>", | ||
@@ -27,4 +27,4 @@ "description": "React specific linting rules for ESLint", | ||
"coveralls": "2.11.2", | ||
"eslint": "0.13.0", | ||
"eslint-tester": "0.5.0", | ||
"eslint": "0.14.1", | ||
"eslint-tester": "0.6.0", | ||
"istanbul": "0.3.5", | ||
@@ -31,0 +31,0 @@ "mocha": "2.1.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
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
13210
10
210