1.0.0 • Published 6 years ago

@rushplay/eslint-plugin-redux-effects v1.0.0

Weekly downloads
49
License
-
Repository
-
Last release
6 years ago

@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.