tslint-no-return
v1.0.0
Published
TSLint rule to disallow return statement
Downloads
4
Readme
tslint-no-return
TSLint plugin to disable return statement
Installation
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.
Usage
Add no-return
to your tslint.json
configuration file:
{
"extends": ["tslint-no-return"]
}
Supported Rule
no-return
- disallowreturn
statements