@rushplay/eslint-plugin-redux-effects
v1.0.0
Published
Report typical `redux-effects` errors.
Downloads
76
Readme
@rushplay/eslint-plugin-redux-effects
Report typical redux-effects
errors.
Installation
yarn add eslint @rushplay/eslint-plugin-redux-effects --dev
Usage
Add plugin in your .eslintrc
and enable desired rules:
{
"plugins": ["@rushplay/redux-effects"],
"rules": {
"@rushplay/redux-effects/no-redundant-dispatch": 2
}
}
Rules
no-redundant-dispatch
Targeted for internal library built on top of redux-effects
Checks for redundant dispatch
calls in success
/failure
callbacks, which lead to double-dispatch.