eslint-plugin-react-redux-smell
v0.1.5
Published
Identify redux anti-patterns
Downloads
3
Maintainers
Readme
eslint-plugin-react-redux-smell
Identify known redux anti-patterns
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-react-redux-smell
:
npm install eslint-plugin-react-redux-smell --save-dev
Usage
Add react-redux-smell
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"react-redux-smell"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"react-redux-smell/rule-name": 2
}
}
Supported Rules
- same-object-reference Warns the user the variable assignment created references the same object.
- more-to-come More rules to follow....