Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 324 Bytes

no-numeric-endings-for-variables.md

File metadata and controls

17 lines (11 loc) · 324 Bytes

Prohibits the use of variables that end in numerics.

Variables that end in numbers make it harder to discern their purpose.

Rule Details

The following pattern is considered a warning:

const user1 = 'Tony Stark';

The following pattern is not considered a warning:

const ironMan = 'Tony Stark';