From 090a674a81a5620802b93b518d4efd3f51a51a92 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 9 Jan 2022 11:38:04 -0800 Subject: [PATCH] tools: enable ESLint no-constant-condition rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/41463 Reviewed-By: Tobias Nießen Reviewed-By: Michaël Zasso Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Geoffrey Booth --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index 080be6f582f3ce..6f29093480dde8 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',