eslint-plugin-react
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -6,2 +6,9 @@ # Change Log | ||
## [5.0.1] - 2016-04-18 | ||
### Fixed | ||
* Fix `require-render-return` to not check stateless functions ([#550][]) | ||
[5.0.1]: https://github.com/yannickcr/eslint-plugin-react/compare/v5.0.0...v5.0.1 | ||
[#550]: https://github.com/yannickcr/eslint-plugin-react/issues/550 | ||
## [5.0.0] - 2016-04-17 | ||
@@ -8,0 +15,0 @@ ### Added |
@@ -13,3 +13,3 @@ /** | ||
module.exports = Components.detect(function(context, components) { | ||
module.exports = Components.detect(function(context, components, utils) { | ||
@@ -48,3 +48,7 @@ /** | ||
for (var component in list) { | ||
if (!list.hasOwnProperty(component) || list[component].hasReturnStatement) { | ||
if ( | ||
!list.hasOwnProperty(component) || | ||
list[component].hasReturnStatement || | ||
(!utils.isES5Component(list[component].node) && !utils.isES6Component(list[component].node)) | ||
) { | ||
continue; | ||
@@ -51,0 +55,0 @@ } |
{ | ||
"name": "eslint-plugin-react", | ||
"version": "5.0.0", | ||
"version": "5.0.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
227592
5128