Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 391 Bytes

no-use-before-declare.md

File metadata and controls

13 lines (7 loc) · 391 Bytes

Pattern: Variable use before declaration

Issue: -

Description

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.

Further Reading