summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorLuigi Pinca <luigipinca@gmail.com>2020-04-08 18:58:03 +0200
committerLuigi Pinca <luigipinca@gmail.com>2020-05-16 06:42:16 +0200
commitb533fb3508009e5f567cc776daba8fbf665386a6 (patch)
tree4b7bbfdc2feeee93b855b01abd2e56f499b70d0a /.eslintrc.js
parent1cb80d1e0590eeb3daf495bddfcf5237a99aa9b7 (diff)
downloadios-node-v8-b533fb3508009e5f567cc776daba8fbf665386a6.tar.gz
ios-node-v8-b533fb3508009e5f567cc776daba8fbf665386a6.tar.bz2
ios-node-v8-b533fb3508009e5f567cc776daba8fbf665386a6.zip
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 14c53277a1..f59f65f806 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',