Closed bakkot closed 6 years ago
Uses the same eslint config as we use elsewhere, except that I've explicitly added 'no-constant-condition': ['error', { "checkLoops": false }] as an exception so that our while (true) works don't cause lint errors.
'no-constant-condition': ['error', { "checkLoops": false }]
while (true)
Also enforces lint on CI.
You can use for (;;) instead to avoid the no-constant-condition failures. Though arguably you shouldn't be able to.
for (;;)
no-constant-condition
while (true) seems cleaner. I don't want my linter asking me to write less clean code.
Uses the same eslint config as we use elsewhere, except that I've explicitly added
'no-constant-condition': ['error', { "checkLoops": false }]
as an exception so that ourwhile (true)
works don't cause lint errors.Also enforces lint on CI.