2.0.0 • Published 6 years ago

eslint-plugin-no-return v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

eslint-plugin-no-return

npm Build Status Greenkeeper badge

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

2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.0

6 years ago