Skip to content

[WIP] An ESLint plugin for those people, who forget to restore their spies after the test run.

Notifications You must be signed in to change notification settings

alperen/eslint-restore-spies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-restore-spies

An ESLint plugin for those people, who forget to restore their spies after the test run.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-restore-spies:

$ npm install eslint-plugin-eslint-restore-spies --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-restore-spies globally.

Usage

Add eslint-restore-spies to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": [
    "eslint-restore-spies"
  ]
}

Documentation

Please click here to see documentation of rule.

About

[WIP] An ESLint plugin for those people, who forget to restore their spies after the test run.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages