E0003: cannot assign to const variable
You cannot reassign variables declared with const
. The assignment will crash
with a ReferenceError
if you run the code.
In TypeScript, you cannot assign to enum
s.
To fix this error, assign to a different variable, declare a new variable with a
different name, or change const
to let
:
Introduced in quick-lint-js version 0.2.0.