Pattern: Variable use before declaration
Issue: -
Disallows usage of variables before their declaration.
This rule is primarily useful when using the var
keyword - the compiler will detect if a let
and const
variable is used before it is declared.