Enhancement Proposal: auto fixing of no-var #6639
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
enhancement
This change enhances an existing feature of ESLint
rule
Relates to ESLint's core rules
This proposal is it makes no-var rule fixable:
var
declarations tolet
declarations.var
declaration if the declaration has redeclaration(s)in the same scopebecauselet
declarations are not allowed redeclaration.var
declarations toconst
declarations. If it can become aconst
declaration,prefer-const
rule will modify it in the next step.)This would help us to apply this rule to our codebase.
The text was updated successfully, but these errors were encountered: