diff options
author | dartcafe <github@dartcafe.de> | 2021-10-15 00:48:31 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-10-15 00:48:31 +0300 |
commit | 4b84b06e109182afae3980e3cb4961f0c2238cc2 (patch) | |
tree | 7f8fbcbf669aec48e5a1c08a5d1023841315152b /.eslintrc.js | |
parent | 465c912accd6b4847d7cdd92d6744b40dccc5b97 (diff) |
eslint no-else-return {allowElseif: false}
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 2 |
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 }], |