Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
213
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.2.3 to 3.3.0

lib/rules/jsx-closing-bracket-location.js

16

History.md

@@ -0,1 +1,17 @@

3.3.0 / 2015-08-26
==================
* update dependencies
* add jsx-indent-props rule ([#15][], [#181][])
* add no-set-state rule ([#197][] @markdalgleish)
* add jsx-closing-bracket-location rule ([#14][], [#64][])
* fix crash on propTypes declarations with an empty body ([#193][] @mattyod)
[#15]: https://github.com/yannickcr/eslint-plugin-react/issues/15
[#181]: https://github.com/yannickcr/eslint-plugin-react/issues/181
[#197]: https://github.com/yannickcr/eslint-plugin-react/pull/197
[#14]: https://github.com/yannickcr/eslint-plugin-react/issues/14
[#64]: https://github.com/yannickcr/eslint-plugin-react/issues/64
[#193]: https://github.com/yannickcr/eslint-plugin-react/pull/193
3.2.3 / 2015-08-16

@@ -2,0 +18,0 @@ ==================

10

index.js

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

'no-danger': require('./lib/rules/no-danger'),
'no-set-state': require('./lib/rules/no-set-state'),
'no-did-mount-set-state': require('./lib/rules/no-did-mount-set-state'),

@@ -28,3 +29,5 @@ 'no-did-update-set-state': require('./lib/rules/no-did-update-set-state'),

'jsx-max-props-per-line': require('./lib/rules/jsx-max-props-per-line'),
'jsx-no-literals': require('./lib/rules/jsx-no-literals')
'jsx-no-literals': require('./lib/rules/jsx-no-literals'),
'jsx-indent-props': require('./lib/rules/jsx-indent-props'),
'jsx-closing-bracket-location': require('./lib/rules/jsx-closing-bracket-location')
},

@@ -39,2 +42,3 @@ rulesConfig: {

'no-danger': 0,
'no-set-state': 0,
'no-did-mount-set-state': 0,

@@ -55,4 +59,6 @@ 'no-did-update-set-state': 0,

'jsx-max-props-per-line': 0,
'jsx-no-literals': 0
'jsx-no-literals': 0,
'jsx-indent-props': 0,
'jsx-closing-bracket-location': 0
}
};

4

lib/rules/prop-types.js

@@ -583,3 +583,5 @@ /**

markPropTypesAsDeclared(node, node.value.body.body[i].argument);
if (i >= 0) {
markPropTypesAsDeclared(node, node.value.body.body[i].argument);
}
},

@@ -586,0 +588,0 @@

{
"name": "eslint-plugin-react",
"version": "3.2.3",
"version": "3.3.0",
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>",

@@ -26,6 +26,6 @@ "description": "React specific linting rules for ESLint",

"devDependencies": {
"babel-eslint": "4.0.5",
"babel-eslint": "4.1.0",
"coveralls": "2.11.4",
"eslint": "1.1.0",
"istanbul": "0.3.17",
"eslint": "1.2.1",
"istanbul": "0.3.18",
"mocha": "2.2.5"

@@ -32,0 +32,0 @@ },

@@ -47,4 +47,6 @@ ESLint-plugin-React

"react/jsx-boolean-value": 1,
"react/jsx-closing-bracket-location": 1,
"react/jsx-curly-spacing": 1,
"react/jsx-max-props-per-line": 1,
"react/jsx-indent-props": 1,
"react/jsx-no-duplicate-props": 1,

@@ -58,2 +60,3 @@ "react/jsx-no-undef": 1,

"react/no-danger": 1,
"react/no-set-state": 1,
"react/no-did-mount-set-state": 1,

@@ -77,4 +80,6 @@ "react/no-did-update-set-state": 1,

* [jsx-boolean-value](docs/rules/jsx-boolean-value.md): Enforce boolean attributes notation in JSX
* [jsx-closing-bracket-location](docs/rules/jsx-closing-bracket-location.md): Validate closing bracket location in JSX
* [jsx-curly-spacing](docs/rules/jsx-curly-spacing.md): Enforce or disallow spaces inside of curly braces in JSX attributes
* [jsx-max-props-per-line](docs/rules/jsx-max-props-per-line.md): Limit maximum of props on a single line in JSX
* [jsx-indent-props](docs/rules/jsx-indent-props.md): Validate props indentation in JSX
* [jsx-no-duplicate-props](docs/rules/jsx-no-duplicate-props.md): Prevent duplicate props in JSX

@@ -89,2 +94,3 @@ * [jsx-no-literals](docs/rules/jsx-no-literals.md): Prevent usage of unwrapped JSX strings

* [no-danger](docs/rules/no-danger.md): Prevent usage of dangerous JSX properties
* [no-set-state](docs/rules/no-set-state.md): Prevent usage of setState
* [no-did-mount-set-state](docs/rules/no-did-mount-set-state.md): Prevent usage of setState in componentDidMount

@@ -91,0 +97,0 @@ * [no-did-update-set-state](docs/rules/no-did-update-set-state.md): Prevent usage of setState in componentDidUpdate

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