Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
212
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 2.6.0 to 2.6.1

8

History.md

@@ -0,1 +1,8 @@

2.6.1 / 2015-06-28
==================
* fix crash in prop-types when encountering an empty variable declaration ([#130][])
[#130]: https://github.com/yannickcr/eslint-plugin-react/issues/130
2.6.0 / 2015-06-28

@@ -31,3 +38,2 @@ ==================

2.5.2 / 2015-06-14

@@ -34,0 +40,0 @@ ==================

2

lib/rules/prop-types.js

@@ -536,3 +536,3 @@ /**

VariableDeclarator: function(node) {
if (node.init.type !== 'ThisExpression' || node.id.type !== 'ObjectPattern') {
if (!node.init || node.init.type !== 'ThisExpression' || node.id.type !== 'ObjectPattern') {
return;

@@ -539,0 +539,0 @@ }

{
"name": "eslint-plugin-react",
"version": "2.6.0",
"version": "2.6.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