oxc-project / oxc

⚓ A collection of JavaScript tools written in Rust.
https://oxc.rs
MIT License
12.26k stars 443 forks source link

mark `no-undef-init` as done in lint_rules task #6456

Open camc314 opened 3 weeks ago

camc314 commented 3 weeks ago

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

Originally posted by @radu2147 in https://github.com/oxc-project/oxc/issues/6267#issuecomment-2395027281

camc314 commented 3 weeks ago

tldr:

  1. no-usless-undefined is implemented in unicorn
  2. no-useless-undefined covers the cases no-undef-init hence no need for no-undef-init
  3. we should mark this as done in the tasks/lint_rules list