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 1.2.2 to 1.3.0

lib/rules/no-did-mount-set-state.js

6

History.md

@@ -0,1 +1,7 @@

1.3.0 / 2015-02-24
==================
* update dependencies
* add no-did-mount-set-state rule
* add no-did-update-set-state rule
1.2.2 / 2015-02-09

@@ -2,0 +8,0 @@ ==================

8

index.js

@@ -9,3 +9,5 @@ 'use strict';

'wrap-multilines': require('./lib/rules/wrap-multilines'),
'self-closing-comp': require('./lib/rules/self-closing-comp')
'self-closing-comp': require('./lib/rules/self-closing-comp'),
'no-did-mount-set-state': require('./lib/rules/no-did-mount-set-state'),
'no-did-update-set-state': require('./lib/rules/no-did-update-set-state')
},

@@ -17,4 +19,6 @@ rulesConfig: {

'wrap-multilines': 0,
'self-closing-comp': 0
'self-closing-comp': 0,
'no-did-mount-set-state': 0,
'no-did-update-set-state': 0
}
};
{
"name": "eslint-plugin-react",
"version": "1.2.2",
"version": "1.3.0",
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>",

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

"coveralls": "2.11.2",
"eslint": "0.14.1",
"eslint": "0.15.0",
"eslint-tester": "0.6.0",
"istanbul": "0.3.5",
"istanbul": "0.3.6",
"mocha": "2.1.0"

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

@@ -49,3 +49,5 @@ ESLint-plugin-React

"react/wrap-multilines": 1,
"react/self-closing-comp": 1
"react/self-closing-comp": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1
}

@@ -62,2 +64,4 @@ }

* [self-closing-comp](docs/rules/self-closing-comp.md): Prevent extra closing tags for components without children
* [no-did-mount-set-state](docs/rules/no-did-mount-set-state.md): Prevent usage of setState in componentDidMount
* [no-did-update-set-state](docs/rules/no-did-update-set-state.md): Prevent usage of setState in componentDidUpdate

@@ -70,2 +74,3 @@ ## To Do

* [Implement relevant rules from John Cobb's best practices and conventions](http://web-design-weekly.com/2015/01/29/opinionated-guide-react-js-best-practices-conventions/)
* [Implement relevant rules from Alexander Early's tips and best practices](http://aeflash.com/2015-02/react-tips-and-best-practices.html)

@@ -72,0 +77,0 @@ [Any rule idea is welcome !](https://github.com/yannickcr/eslint-plugin-react/issues)

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