Yes, it seems that no-useless-undefined treats a more general case which involves this one as well. @camc314 should we mark the no-undef-init rule in linter product plan for eslint as done, in this case?
Also I noticed that no-lonely-if is also done in unicorn
Yes, it seems that
no-useless-undefined
treats a more general case which involves this one as well. @camc314 should we mark theno-undef-init
rule in linter product plan for eslint as done, in this case?Also I noticed that
no-lonely-if
is also done in unicornOriginally posted by @radu2147 in https://github.com/oxc-project/oxc/issues/6267#issuecomment-2395027281