Bug: no-var
autofix is not working
#16610
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
autofix
This change is related to ESLint's autofixing capabilities
bug
ESLint is working incorrectly
repro:yes
rule
Relates to ESLint's core rules
Projects
How to reproduce?
config:
code:
What did you expect to happen?
var fx
autofixed tolet fx
I tried the code in a sandpit and it behaves the same.
What actually happened?
not autofixed,
Unexpected var, use let or const instead no-var
error is generated(autofix of
var
->let
works in other cases, the problem is present only when the variable is referred in anonymous function in the same declaration)The text was updated successfully, but these errors were encountered: