Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

7

CHANGELOG.md

@@ -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

8

lib/rules/require-render-return.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc