There's a check for undefined variables which works well, but all it seems to be doing is checking for the existence of an assignment, not the validity of the assignment.
Currently, I can attempt to access a variable before it's been assigned and it's considered valid.
If you look in ESLint, this would throw an undefined error.
Expected
{{ cool }}
{% assign cool = true %}
// Variable "cool" used before being assigned.
Describe the bug
There's a check for undefined variables which works well, but all it seems to be doing is checking for the existence of an assignment, not the validity of the assignment.
Currently, I can attempt to access a variable before it's been assigned and it's considered valid.
If you look in ESLint, this would throw an undefined error.
Expected
Actual
Debugging information