eslint-plugin-react
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -0,1 +1,10 @@ | ||
1.6.1 / 2015-03-25 | ||
================== | ||
* update jsx-quotes documentation | ||
* fix jsx-no-undef with babel-eslint ([#30][]) | ||
* fix jsx-quotes on Literal childs ([#29][]) | ||
[#30]: https://github.com/yannickcr/eslint-plugin-react/issues/30 | ||
[#29]: https://github.com/yannickcr/eslint-plugin-react/issues/29 | ||
1.6.0 / 2015-03-22 | ||
@@ -2,0 +11,0 @@ ================== |
@@ -41,2 +41,6 @@ /** | ||
variables = scope.childScopes[0].variables.concat(variables); | ||
// Temporary fix for babel-eslint | ||
if (scope.childScopes[0].childScopes.length) { | ||
variables = scope.childScopes[0].childScopes[0].variables.concat(variables); | ||
} | ||
} | ||
@@ -43,0 +47,0 @@ |
@@ -43,16 +43,6 @@ /** | ||
/** | ||
* Determines if a given node is part of JSX syntax. | ||
* @param {ASTNode} node The node to check. | ||
* @returns {boolean} True if the node is a JSX node, false if not. | ||
* @private | ||
*/ | ||
function isJSXElement(node) { | ||
return node.type.indexOf('JSX') === 0; | ||
} | ||
return { | ||
Literal: function(node) { | ||
if (!isJSXElement(node.parent)) { | ||
if (node.parent.type !== 'JSXAttribute') { | ||
return; | ||
@@ -59,0 +49,0 @@ } |
{ | ||
"name": "eslint-plugin-react", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "React specific linting rules for ESLint", |
26532
518