Only enable no-constant-condition for non-loops

"while (true)" is a useful pattern that eslint doesn't really need to
flag as a problem.
This commit is contained in:
valadaptive 2023-12-02 09:16:11 -05:00
parent 60ac1aa1c7
commit 7def71aef7
1 changed files with 1 additions and 1 deletions

View File

@ -66,6 +66,6 @@ module.exports = {
'use-isnan': 'off',
'no-self-assign': 'off',
'no-unsafe-negation': 'off',
'no-constant-condition': 'off'
'no-constant-condition': ['error', {checkLoops: false}]
}
};