eslint-plugin-no-return
v2.0.0
Published
ESLint plugin to disallow return statement
Downloads
4
Maintainers
Readme
eslint-plugin-no-return
ESLint plugin to disable return statement
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-no-return
:
$ npm install eslint-plugin-no-return --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-no-return
globally.
Usage
Add no-return
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"no-return"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"no-return/no-return": 2
}
}
Supported Rule
no-return
- disallowreturn
statements