Skip to content

Conversation

cressie176
Copy link
Collaborator

@cressie176 cressie176 commented Sep 4, 2025

Killed 3 birds (noVar, noInnerDeclarations, noInvalidUseBeforeDeclaration) with one stone

  • Replace 674 var declarations with appropriate let/const
  • Use const for immutable values (requires, constants, never-reassigned variables)
  • Use let for variables that get reassigned (loop counters, mutated state)
  • Modernise codebase for Node.js v18+ with proper block scoping
  • Eliminate variable hoisting issues and improve code clarity
  • All tests pass with zero linting errors

🤖 Generated with Claude Code

…ndards

- Replace 674 var declarations with appropriate let/const
- Use const for immutable values (requires, constants, never-reassigned variables)
- Use let for variables that get reassigned (loop counters, mutated state)
- Modernise codebase for Node.js v18+ with proper block scoping
- Eliminate variable hoisting issues and improve code clarity
- All tests pass with zero linting errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
cressie176 and others added 2 commits September 4, 2025 13:38
The var to let/const modernisation resolved all noInnerDeclarations violations
by moving variable declarations to proper block scope with let/const.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
The var to let/const modernisation resolved all noInvalidUseBeforeDeclaration
violations by eliminating variable hoisting issues with proper block scoping.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants