0.1.5 • Published 4 years ago
eslint-plugin-react-redux-smell v0.1.5
eslint-plugin-react-redux-smell
Identify known redux anti-patterns
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-react-redux-smell:
npm install eslint-plugin-react-redux-smell --save-devUsage
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....