You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
I would argue that this complements prefer-const quite nicely. Together, they enforce that any variable in UPPER_CASE must be const and therefore never modified.
Check out tslint-consistent-codestyle and the naming-convention rule. It's very flexible and you should be able to get the outcome that you're after.
The only thing is that it sort of works in the opposite direction to what you wanted. Instead of enforcing const for uppercase variable names, it would enforce uppercase variable names for const variables.
ALL_CAPS variables, by convention are constants. It would be nice to have a rule that enforces
const
instead oflet
for those.This might not be needed if #491 is active, but I prefer this weaker form.
The text was updated successfully, but these errors were encountered: