Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
213
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 3.2.0 to 3.2.1

9

History.md

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

4

lib/rules/jsx-no-literals.js

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

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