2.0.0 • Published 7 years ago
eslint-plugin-no-return v2.0.0
eslint-plugin-no-return
ESLint plugin to disable return statement
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-no-return:
$ npm install eslint-plugin-no-return --save-devNote: 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- disallowreturnstatements