TSLint plugin to disable return statement
You'll first need to install TSLint:
$ npm i tslint --save-dev
Next, install tslint-no-return
:
$ npm install tslint-no-return --save-dev
Note: If you installed TSLint globally (using the -g
flag) then you must also install tslint-no-return
globally.
Add no-return
to your tslint.json
configuration file:
{
"extends": ["tslint-no-return"]
}
no-return
- disallowreturn
statements