1.0.7 • Published 4 years ago

eslint-plugin-react-props-in-state v1.0.7

Weekly downloads
247
License
ISC
Repository
-
Last release
4 years ago

eslint-plugin-react-props-in-state

It reports several things:

  • When you do not have componentWillReceiveProps on components that depends on props
  • When you do not have nextProps argument on componentWillReceiveProps
  • When you do not use nextProps inside of componentWillReceiveProps
  • When you implicit use of this.props while mutating this.state

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-change-listeners:

$ npm install eslint-plugin-react-props-in-state --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-react-props-in-state globally.

Usage

Add react-props-in-state to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "react-props-in-state"
    ]
}
1.0.7

4 years ago

1.0.6

6 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago