[no-unnecessary-condition] Add an option to allow while (true)
#1015
Labels
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
no-constant-condition has a checkLoops to allow
while (true)
pattern. I think it makes sense to add a similar option tono-unnecessary-condition
. Compared tocheckLoops
, I don't think it should ignore all loop conditions but onlytrue
literal.The text was updated successfully, but these errors were encountered: