Closed 43081j closed 6 years ago
It seems like it isn't enabled and eslint:recommended doesn't enable it either.
However, in the style guide here:
Declare all local variables with either const or let. Use const by default, unless a variable needs to be reassigned. The var keyword must not be used.
So surely this means it should be an error to use let for a variable which is not reassigned?
let
edit:
seems this is fixed by #49 if it gets merged.
Yeah, I've pinged the author of that PR to see if he'll sign the CLA. If not (or if he doesn't respond) I can add this myself.
It seems like it isn't enabled and eslint:recommended doesn't enable it either.
However, in the style guide here:
So surely this means it should be an error to use
let
for a variable which is not reassigned?edit:
seems this is fixed by #49 if it gets merged.