feat(eslint): Rule "no-else-return"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 01:27:43 +04:00
parent e5752a7db1
commit ab55229cd3
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 7 additions and 1 deletions

View File

@ -105,7 +105,7 @@
- [ ] "no-dupe-keys"
- [ ] "no-duplicate-case"
- [ ] "no-duplicate-imports"
- [ ] "no-else-return"
- [X] "no-else-return"
- [X] "no-empty"
- [ ] "no-empty-character-class"
- [ ] "no-empty-function"

View File

@ -218,6 +218,12 @@
"no-debugger": [
"warn"
],
"no-else-return": [
"error",
{
"allowElseIf": false
}
],
"no-empty": [
"warn",
{