Skip to content

linter: no-unused-vars does not follow tail-first loop #14765

@lukeed

Description

@lukeed

What version of Oxlint are you using?

1.23.0

What command did you run?

No response

What does your .oxlintrc.json config file look like?

// your config here

What happened?

 280      // manager.addTask('Medium task', 5000);
 281      for (let len = 10; len-- > 0; ) {
     ·              ─┬─       ─┬─
     ·                        ╰── it was last assigned here
     ·               ╰── 'len' is declared here
 282          manager.addTask("Slow task", 8000);
     ╰────
  help: Did you mean to use this variable?

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions