E0136: cannot update variable with '+=' while declaring it
When declaring a variable with const
, let
, or var
, you can set the
variable's initial value using =
. It is a syntax error to use a compound
assignment operator instead of =
:
To fix this error, remove the let
keyword:
Alternatively, replace the compound assignment operator with =
:
Introduced in quick-lint-js version 0.2.0.