Describe the changes
Refactored several variable declarations from let to const in files where variables are read but never reassigned. This aligns with the ESLint prefer-const rule to ensure immutability is clearly declared.
To Reproduce/Files Modified:
The following files were modified to replace let with const for unused reassignments:
-
scripts/recalculate-all-points.ts
- Changed
let projectCount = projectsSnap.size; to const projectCount = projectsSnap.size;
-
src/components/profile/UserProfile.tsx
- Changed
let docRef and let snap to const docRef and const snap during the asynchronous user document fetch loop.
-
src/components/ui/InteractiveBackground.tsx
- Changed
let logoAngle = 0; to const logoAngle = 0; in the interactive background animation loop.
Expected behavior
Variables that are never reassigned should use const instead of let to improve code readability, maintainability, and satisfy ESLint's prefer-const rule.
Additional context
These changes were resolved automatically by running npm run lint --fix on the workspace.
Describe the changes
Refactored several variable declarations from
lettoconstin files where variables are read but never reassigned. This aligns with the ESLintprefer-construle to ensure immutability is clearly declared.To Reproduce/Files Modified:
The following files were modified to replace
letwithconstfor unused reassignments:scripts/recalculate-all-points.tslet projectCount = projectsSnap.size;toconst projectCount = projectsSnap.size;src/components/profile/UserProfile.tsxlet docRefandlet snaptoconst docRefandconst snapduring the asynchronous user document fetch loop.src/components/ui/InteractiveBackground.tsxlet logoAngle = 0;toconst logoAngle = 0;in the interactive background animation loop.Expected behavior
Variables that are never reassigned should use
constinstead ofletto improve code readability, maintainability, and satisfy ESLint'sprefer-construle.Additional context
These changes were resolved automatically by running
npm run lint --fixon the workspace.