Newfangled Package Modernizer
    Have ideas to improve npm?Join in the discussion! »

    eslint-plugin-redux-saga

    1.2.1 • Public • Published

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

    Install

    npm i eslint-plugin-redux-saga

    DownloadsWeekly Downloads

    36,826

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    12.9 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar