eslint-plugin-react
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -0,1 +1,10 @@ | ||
3.2.1 / 2015-08-08 | ||
================== | ||
* fix crash when propTypes don't have any parent ([#182][]) | ||
* fix jsx-no-literals reporting errors outside JSX ([#183][] @CalebMorris) | ||
[#182]: https://github.com/yannickcr/eslint-plugin-react/issues/182 | ||
[#183]: https://github.com/yannickcr/eslint-plugin-react/pull/183 | ||
3.2.0 / 2015-08-04 | ||
@@ -2,0 +11,0 @@ ================== |
@@ -27,3 +27,5 @@ /* | ||
node.parent && | ||
node.parent.type !== 'JSXExpressionContainer' | ||
node.parent.type !== 'JSXExpressionContainer' && | ||
node.parent.type !== 'JSXAttribute' && | ||
node.parent.type.indexOf('JSX') !== -1 | ||
) { | ||
@@ -30,0 +32,0 @@ reportLiteralNode(node); |
@@ -469,2 +469,3 @@ /** | ||
propTypes && | ||
propTypes.parent && | ||
propTypes.parent.type !== 'AssignmentExpression' && | ||
@@ -484,3 +485,3 @@ propTypes.property && | ||
} | ||
if (propTypes && propTypes.property) { | ||
if (propTypes && propTypes.parent && propTypes.property) { | ||
curDeclaredPropTypes[propTypes.property.name] = | ||
@@ -487,0 +488,0 @@ buildReactDeclarationTypes(propTypes.parent.right); |
{ | ||
"name": "eslint-plugin-react", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "React specific linting rules for ESLint", |
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
102714
2514