Skip to content

Commit 25509ba

Browse files
committed
Disabled eslint error for while(true)
1 parent 4ead36f commit 25509ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"react-hooks/rules-of-hooks": "off",
88
"no-console": "off",
99
"import/no-unresolved": "off",
10-
"@typescript-eslint/no-floating-promises": "off"
10+
"@typescript-eslint/no-floating-promises": "off",
11+
"@typescript-eslint/no-unnecessary-condition": ["error", { "allowConstantLoopConditions": true }]
1112
},
1213
"parserOptions": {
1314
"project": ["./tsconfig.json", "./test/tsconfig.json"]

src/asyncUtils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ function asyncUtils(addResolver: (callback: () => void) => void) {
6060

6161
const waitForResult = async () => {
6262
const initialTimeout = timeout
63-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
6463
while (true) {
6564
const startTime = Date.now()
6665
try {

0 commit comments

Comments
 (0)