1.0.17 • Published 4 years ago

eslint-plugin-no-expectsaga-without-return v1.0.17

Weekly downloads
62
License
MIT
Repository
github
Last release
4 years ago

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.

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago