Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-10-15 00:48:31 +0300
committerdartcafe <github@dartcafe.de>2021-10-15 00:48:31 +0300
commit4b84b06e109182afae3980e3cb4961f0c2238cc2 (patch)
tree7f8fbcbf669aec48e5a1c08a5d1023841315152b /.eslintrc.js
parent465c912accd6b4847d7cdd92d6744b40dccc5b97 (diff)
eslint no-else-return {allowElseif: false}
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index e71ee5de..de081f70 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -15,7 +15,7 @@ module.exports = {
'newline-per-chained-call': ['error', { ignoreChainWithDepth: 4 }],
'no-array-constructor': 'error',
'no-continue': 'error',
- 'no-else-return': 'error',
+ 'no-else-return': ['error', { allowElseIf: false }],
'no-lonely-if': 'error',
'no-negated-condition': 'error',
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],