Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 363 Bytes

prefer-const.md

File metadata and controls

13 lines (7 loc) · 363 Bytes

Pattern: Missing const for variable declaration

Issue: -

Description

Requires that variable declarations use const instead of let and var if possible.

If a variable is only assigned to once when it is declared, it should be declared using const.

Further Reading