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:
authorRich Trott <rtrott@gmail.com>2022-01-09 22:38:04 +0300
committerRich Trott <rtrott@gmail.com>2022-01-14 04:12:11 +0300
commit5bce5b706ff192bd30138ced1b0862dcbe957f6c (patch)
tree351785b40066baea7aa9dfd60d753341ea71f046 /.eslintrc.js
parentdcc368f4bef5b763b8ef20ef7dacbfec27c2eadd (diff)
tools: enable ESLint no-constant-condition rule
PR-URL: https://github.com/nodejs/node/pull/41463 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.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 b724276db5f..7e162b1cfa4 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -179,6 +179,7 @@ module.exports = {
'no-class-assign': 'error',
'no-confusing-arrow': 'error',
'no-const-assign': 'error',
+ 'no-constant-condition': ['error', { checkLoops: false }],
'no-constructor-return': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',