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 4.0.0-rc.0 to 4.0.0-rc.1

9

CHANGELOG.md

@@ -6,2 +6,11 @@ # Change Log

## [4.0.0-rc.1] - 2016-02-15
### Fixed
* Fix `jsx-handler-names` regex ([#425][])
* Fix destructured props detection in `prop-types` ([#443][])
[4.0.0-rc.1]: https://github.com/yannickcr/eslint-plugin-react/compare/v4.0.0-rc.0...v4.0.0-rc.1
[#425]: https://github.com/yannickcr/eslint-plugin-react/issues/425
[#443]: https://github.com/yannickcr/eslint-plugin-react/issues/443
## [4.0.0-rc.0] - 2016-02-14

@@ -8,0 +17,0 @@ ### Added

4

lib/rules/jsx-handler-names.js

@@ -18,4 +18,4 @@ /**

var EVENT_HANDLER_REGEX = new RegExp('^((props\.' + eventHandlerPropPrefix + ')'
+ '|((.*\.)?' + eventHandlerPrefix + ')).+$');
var EVENT_HANDLER_REGEX = new RegExp('^((props\\.' + eventHandlerPropPrefix + ')'
+ '|((.*\\.)?' + eventHandlerPrefix + ')).+$');
var PROP_EVENT_HANDLER_REGEX = new RegExp('^(' + eventHandlerPropPrefix + '.+|ref)$');

@@ -22,0 +22,0 @@

@@ -716,8 +716,4 @@ /**

function markDestructuredFunctionArgumentsAsUsed(node) {
var destructuring = node.params &&
node.params.length === 1 &&
node.params[0] &&
node.params[0].type === 'ObjectPattern';
if (destructuring) {
var destructuring = node.params && node.params[0] && node.params[0].type === 'ObjectPattern';
if (destructuring && components.get(node)) {
markPropTypesAsUsed(node);

@@ -724,0 +720,0 @@ }

{
"name": "eslint-plugin-react",
"version": "4.0.0-rc.0",
"version": "4.0.0-rc.1",
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>",

@@ -28,3 +28,3 @@ "description": "React specific linting rules for ESLint",

"coveralls": "2.11.6",
"eslint": "2.0.0",
"eslint": "2.1.0",
"istanbul": "0.4.2",

@@ -31,0 +31,0 @@ "mocha": "2.4.5"

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