eslint: allow while (true)

This commit is contained in:
LouisLam 2021-07-30 15:13:51 +08:00
parent cdaa0a54a4
commit e032072900
2 changed files with 4 additions and 1 deletions

View File

@ -61,6 +61,9 @@ module.exports = {
"space-infix-ops": "warn", "space-infix-ops": "warn",
"arrow-spacing": "warn", "arrow-spacing": "warn",
"no-trailing-spaces": "warn", "no-trailing-spaces": "warn",
"no-constant-condition": ["error", {
"checkLoops": false,
}],
"space-before-blocks": "warn", "space-before-blocks": "warn",
//'no-console': 'warn', //'no-console': 'warn',
"no-extra-boolean-cast": "off", "no-extra-boolean-cast": "off",

View File

@ -100,7 +100,7 @@ class Database {
console.log("Closing DB") console.log("Closing DB")
for (;;) { while (true) {
Database.noReject = true; Database.noReject = true;
await R.close() await R.close()
await sleep(2000) await sleep(2000)