eslint-plugin-react
Advanced tools
Comparing version 4.0.0-rc.0 to 4.0.0-rc.1
@@ -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 |
@@ -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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198238
4522