Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
212
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.1.1 to 2.2.0

lib/rules/jsx-sort-prop-types.js

18

History.md

@@ -0,1 +1,12 @@

2.2.0 / 2015-04-22
==================
* add jsx-sort-prop-types rule ([#38][] @AlexKVal)
* fix variables marked as used when a prop has the same name ([#69][] @burnnat)
* documentation improvements ([#71][] @AlexKVal)
[#38]: https://github.com/yannickcr/eslint-plugin-react/issues/38
[#69]: https://github.com/yannickcr/eslint-plugin-react/pull/69
[#71]: https://github.com/yannickcr/eslint-plugin-react/pull/71
2.1.1 / 2015-04-17

@@ -6,6 +17,9 @@ ==================

* add tests for the babel-eslint parser
* add ESLint as peerDependency (@AlexKVal)
* documentation improvements (@AlexKVal, @chriscalo)
* add ESLint as peerDependency ([#63][] @AlexKVal)
* documentation improvements ([#55][] @AlexKVal, [#60][] @chriscalo)
[#43]: https://github.com/yannickcr/eslint-plugin-react/issues/43
[#63]: https://github.com/yannickcr/eslint-plugin-react/pull/63
[#55]: https://github.com/yannickcr/eslint-plugin-react/pull/55
[#60]: https://github.com/yannickcr/eslint-plugin-react/pull/60

@@ -12,0 +26,0 @@ 2.1.0 / 2015-04-06

@@ -19,2 +19,3 @@ 'use strict';

'jsx-sort-props': require('./lib/rules/jsx-sort-props'),
'jsx-sort-prop-types': require('./lib/rules/jsx-sort-prop-types'),
'jsx-boolean-value': require('./lib/rules/jsx-boolean-value')

@@ -37,4 +38,5 @@ },

'jsx-sort-props': 0,
'jsx-sort-prop-types': 0,
'jsx-boolean-value': 0
}
};

@@ -24,2 +24,5 @@ /**

JSXIdentifier: function(node) {
if (node.parent.type === 'JSXAttribute') {
return;
}
variableUtil.markVariableAsUsed(context, node.name);

@@ -26,0 +29,0 @@ }

2

package.json
{
"name": "eslint-plugin-react",
"version": "2.1.1",
"version": "2.2.0",
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>",

@@ -5,0 +5,0 @@ "description": "React specific linting rules for ESLint",

@@ -50,2 +50,3 @@ ESLint-plugin-React

"react/jsx-sort-props": 1,
"react/jsx-sort-prop-types": 1,
"react/jsx-uses-react": 1,

@@ -72,2 +73,3 @@ "react/jsx-uses-vars": 1,

* [jsx-sort-props](docs/rules/jsx-sort-props.md): Enforce props alphabetical sorting
* [jsx-sort-prop-types](docs/rules/jsx-sort-prop-types.md): Enforce propTypes declarations alphabetical sorting
* [jsx-uses-react](docs/rules/jsx-uses-react.md): Prevent React to be incorrectly marked as unused

@@ -116,2 +118,1 @@ * [jsx-uses-vars](docs/rules/jsx-uses-vars.md): Prevent variables used in JSX to be incorrectly marked as unused

[status-image]: http://img.shields.io/badge/status-maintained-brightgreen.svg?style=flat-square
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