eslint-plugin-no-expectsaga-without-return

1.0.17 • Public • Published

eslint-plugin-no-expectSaga-without-return

NPM version

Check that you don't forgot to insert return when calling expectSaga inside a test

Installation

Install ESLint either locally or globally. (Note that locally, per project, is strongly preferred)

$ npm install eslint --save-dev

If you installed ESLint globally, you have to install plugin globally too. Otherwise, install it locally.

$ npm install eslint-plugin-no-expectSaga-without-return --save-dev

Configuration

Use our preset to get reasonable defaults:

  "extends": [
    "eslint:recommended",
    "plugin:no-expectSaga-without-return/recommended"
  ]

If you do not use a preset you will need to specify individual rules and add extra configuration.

Add "no-expectSaga-without-return" to the plugins section.

{
  "plugins": [
    "no-expectSaga-without-return"
  ]
}

Enable the rules that you would like to use.

  "rules": {
    "no-expectSaga-without-return/mandatory-return": 2
  }

List of supported rules

  • no-expectSaga-without-return/mandatory-return: Enforces return before expectSaga() calls

License

ESLint-plugin-React is licensed under the MIT License.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.171,357latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.171,357
1.0.160
1.0.150
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.90
1.0.81
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i eslint-plugin-no-expectsaga-without-return

Weekly Downloads

1,358

Version

1.0.17

License

MIT

Unpacked Size

5.22 kB

Total Files

4

Last publish

Collaborators

  • spybot