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

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Pinca <luigipinca@gmail.com>2020-04-08 19:58:03 +0300
committerLuigi Pinca <luigipinca@gmail.com>2020-05-16 07:42:16 +0300
commitb533fb3508009e5f567cc776daba8fbf665386a6 (patch)
tree4b7bbfdc2feeee93b855b01abd2e56f499b70d0a /.eslintrc.js
parent1cb80d1e0590eeb3daf495bddfcf5237a99aa9b7 (diff)
tools: enable no-else-return lint rule
Refs: https://github.com/nodejs/node/pull/32644 Refs: https://github.com/nodejs/node/pull/32662 PR-URL: https://github.com/nodejs/node/pull/32667 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 14c53277a19..f59f65f8065 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -129,6 +129,7 @@ module.exports = {
'no-dupe-else-if': 'error',
'no-duplicate-case': 'error',
'no-duplicate-imports': 'error',
+ 'no-else-return': ['error', { allowElseIf: true }],
'no-empty-character-class': 'error',
'no-ex-assign': 'error',
'no-extra-boolean-cast': 'error',