0.1.2 • Published 6 years ago
eslint-plugin-no-setter-return v0.1.2
eslint-plugin-no-setter-return
this plugin provides a new rule which disallow return statement in setter function
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-no-setter-return:
$ npm install eslint-plugin-no-setter-return --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-no-setter-return globally.
Usage
Add no-setter-return to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"no-setter-return"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"no-setter-return/rule-name": 2
}
}Supported Rules
- Fill in provided rules here