Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
208
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.2 to 2.6.3

17

History.md

@@ -0,5 +1,14 @@

2.6.3 / 2015-06-30
==================
* fix ignore option for prop-types rule ([#135][])
* fix nested props destructuring ([#136][])
[#135]: https://github.com/yannickcr/eslint-plugin-react/issues/135
[#136]: https://github.com/yannickcr/eslint-plugin-react/issues/136
2.6.2 / 2015-06-28
==================
* fix props validation when using a prop as an object key (fixes #132)
* fix props validation when using a prop as an object key ([#132][])

@@ -24,7 +33,8 @@ [#132]: https://github.com/yannickcr/eslint-plugin-react/issues/132

* add support for props destructuring directly on the this keyword
* add acceptTranspilerName option to display-name rule ([#75][])
* add schema to validate rules options
* fix test command for Windows ([#114][] @Cellule)
* fix detection of missing displayName and propTypes when ecmaFeatures.jsx is false ([#119][] @rpl)
* fix `prop-types` destructuring with properties as string ([#118][] @Cellule)
* fix `jsx-sort-prop-types` support for keys as string ([#123][] @Cellule)
* fix prop-types destructuring with properties as string ([#118][] @Cellule)
* fix jsx-sort-prop-types support for keys as string ([#123][] @Cellule)
* fix crash if a ClassProperty has only one token ([#125][])

@@ -45,2 +55,3 @@ * fix invalid class property handling in jsx-sort-prop-types ([#129][])

[#129]: https://github.com/yannickcr/eslint-plugin-react/issues/129
[#75]: https://github.com/yannickcr/eslint-plugin-react/issues/75

@@ -47,0 +58,0 @@ 2.5.2 / 2015-06-14

16

lib/rules/prop-types.js

@@ -426,6 +426,15 @@ /**

var propName = getKeyValue(properties[k]);
var currentNode = node;
allNames = [];
while (currentNode.property && currentNode.property.name !== 'props') {
allNames.unshift(currentNode.property.name);
currentNode = currentNode.object;
}
allNames.push(propName);
if (propName) {
usedPropTypes.push({
name: propName,
allNames: [propName],
allNames: allNames,
node: properties[k]

@@ -504,8 +513,7 @@ });

function reportUndeclaredPropTypes(component) {
var allNames, name;
var allNames;
for (var i = 0, j = component.usedPropTypes.length; i < j; i++) {
name = component.usedPropTypes[i].name;
allNames = component.usedPropTypes[i].allNames;
if (
isIgnored(name) ||
isIgnored(allNames[0]) ||
isDeclaredInComponent(component, allNames)

@@ -512,0 +520,0 @@ ) {

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