diff options
author | Rich Trott <rtrott@gmail.com> | 2022-01-09 22:38:04 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2022-01-14 04:12:11 +0300 |
commit | 5bce5b706ff192bd30138ced1b0862dcbe957f6c (patch) | |
tree | 351785b40066baea7aa9dfd60d753341ea71f046 /.eslintrc.js | |
parent | dcc368f4bef5b763b8ef20ef7dacbfec27c2eadd (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.js | 1 |
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', |