An ESLint plugin for those people, who forget to restore their spies after the test run.
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.
Add eslint-restore-spies to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"eslint-restore-spies"
]
}Please click here to see documentation of rule.