Skip to content

mmakarin/eslint-plugin-no-expectsaga-without-return

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-no-expectSaga-without-return

NPM version

Checks for return statement 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-no-expectSaga-without-return is licensed under the MIT License.

About

Checks for return statement when calling expectSaga inside a test

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published