1.3.2 • Published 3 years ago

eslint-plugin-redux-saga v1.3.2

Weekly downloads
48,095
License
MIT
Repository
github
Last release
3 years ago

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

RuleDescriptionRecommendedFixable
yield-effectsEnsure effects are yieldedrecommendedsuggestion fixable
no-yield-in-racePrevent usage of yield in race entriesrecommendedfixable
no-unhandled-errorsEnsures error handling on sagasrecommended

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"
  ]
}