Need help with eslint-plugin-redux-saga?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

pke
135 Stars 14 Forks MIT License 163 Commits 7 Opened issues

Description

ESLint rules for redux-saga

Services available

!
?

Need anything else?

Contributors list

eslint-plugin-redux-saga

Build Status npm version License

ESLint rules for redux-saga.

Usage

Install the plugin:

npm

npm i -D eslint-plugin-redux-saga

yarn

yarn add -D eslint-plugin-redux-saga

And add it to your

.eslintrc
file:
{
  "plugins": [
    "redux-saga"
  ]
}

Rules

| Rule | Description | Recommended | Fixable | |-------------|------|-------------|---------| | yield-effects | Ensure effects are yielded | recommended | suggestion fixable | | no-yield-in-race | Prevent usage of yield in race entries | recommended | fixable | no-unhandled-errors | Ensures error handling on sagas | recommended |

Recommended configuration

This plugin exports the

recommended
configuration that enforces all the rules. To use it, add following property to
.eslintrc
file:
{
  "extends": [
    "plugin:redux-saga/recommended"
  ]
}

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.