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 3.11.1 to 3.11.2

14

CHANGELOG.md

@@ -6,5 +6,17 @@ # Change Log

## [3.11.2] - 2015-12-01
### Fixed
* Allow numbers in `jsx-pascal-case` ([#339][])
* Fix `jsx-handler-names` crash with arrays ([#340][])
### Changed
* Add allow-in-func option to `no-did-update-set-state` documentation
[3.11.2]: https://github.com/yannickcr/eslint-plugin-react/compare/v3.11.1...v3.11.2
[#339]: https://github.com/yannickcr/eslint-plugin-react/issues/339
[#340]: https://github.com/yannickcr/eslint-plugin-react/issues/340
## [3.11.1] - 2015-11-29
### Fixed
* Fix SVG attributes support for `no-unknown-property` ([#338][])
* Fix SVG attributes support for `no-unknown-property` ([#338][])

@@ -11,0 +23,0 @@ [3.11.1]: https://github.com/yannickcr/eslint-plugin-react/compare/v3.11.0...v3.11.1

4

lib/rules/jsx-handler-names.js

@@ -29,4 +29,4 @@ /**

var subObjectType = valueNodeObject.object ? valueNodeObject.object.type : '';
var propertyName = valueNodeObject.property ? valueNodeObject.property.name : '';
var propValue = valueNode.property ? valueNode.property.name : '';
var propertyName = valueNodeObject.property && valueNodeObject.property.name ? valueNodeObject.property.name : '';
var propValue = valueNode.property && valueNode.property.name ? valueNode.property.name : '';

@@ -33,0 +33,0 @@ if (propertyName.length) {

@@ -14,3 +14,3 @@ /**

var PASCAL_CASE_REGEX = /^[A-Z]+[a-z]+(?:[A-Z]+[a-z]*)*$/;
var PASCAL_CASE_REGEX = /^[A-Z0-9]+[a-z0-9]+(?:[A-Z0-9]+[a-z0-9]*)*$/;

@@ -17,0 +17,0 @@ // ------------------------------------------------------------------------------

{
"name": "eslint-plugin-react",
"version": "3.11.1",
"version": "3.11.2",
"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