summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2020-11-24 14:11:20 +0100
committerMichaël Zasso <targos@protonmail.com>2020-12-07 20:33:45 +0100
commitbf31d3c3b17ffe97828381dc7caf3f73d21805fd (patch)
tree8bac22a5f87d0a278b8ed62b489b2a3069af2b44 /.eslintrc.js
parent0869b829fa6be2934c5a2e7fe8eaeb2e89490a8f (diff)
downloadios-node-v8-bf31d3c3b17ffe97828381dc7caf3f73d21805fd.tar.gz
ios-node-v8-bf31d3c3b17ffe97828381dc7caf3f73d21805fd.tar.bz2
ios-node-v8-bf31d3c3b17ffe97828381dc7caf3f73d21805fd.zip
tools: enable no-unused-expressions lint rule
Fixes: https://github.com/nodejs/node/issues/36246 PR-URL: https://github.com/nodejs/node/pull/36248 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@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 7f37fc19d5..edb2b6c1ee 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -234,6 +234,7 @@ module.exports = {
'no-unreachable': 'error',
'no-unsafe-finally': 'error',
'no-unsafe-negation': 'error',
+ 'no-unused-expressions': ['error', { allowShortCircuit: true }],
'no-unused-labels': 'error',
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'all' }],
'no-use-before-define': ['error', {