PhoenicisOrg / scripts

Phoenicis scripts
GNU Lesser General Public License v3.0
64 stars 49 forks source link

ESLint: do not use var, prefer const #1180

Closed plata closed 4 years ago

madoar commented 4 years ago

Does this option detect whether a value is changed later on? (i.e. whether let should be used?)

plata commented 4 years ago

The docs say:

This rule is aimed at flagging variables that are declared using let keyword, but never reassigned after the initial assignment.

So I hope yes.

plata commented 4 years ago

Actually, if you search for let, you will find that the PR contains it. So I think it should work.