mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
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:
@@ -66,6 +66,6 @@ module.exports = {
|
|||||||
'use-isnan': 'off',
|
'use-isnan': 'off',
|
||||||
'no-self-assign': 'off',
|
'no-self-assign': 'off',
|
||||||
'no-unsafe-negation': 'off',
|
'no-unsafe-negation': 'off',
|
||||||
'no-constant-condition': 'off'
|
'no-constant-condition': ['error', {checkLoops: false}]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user