eslint-plugin-force-void
ESLint rule to force returning void 0.
Installation
After having installed ESLint, install the rule:
$ npm install eslint-plugin-force-void --save-dev
Configuration
Add force-void
to your .eslintrc
:
Fail
{ console; return;}
Pass
{ console; return void 0;}