prefer-const
Configuration
rslint.config.ts
Rule Details
Requires const declarations for variables that are never reassigned after declared. If a variable is never reassigned, using the const declaration is better because it makes the intent clear that the value is not intended to be changed.
Examples of incorrect code for this rule:
Examples of correct code for this rule: