DEV Community

Discussion on: `let` vs `const` and The Mental Mass of Functions

Collapse
 
benholio profile image
Ben Collier

ESLint comes in handy here - it will auto-fix your let (or var) to const if you never mutate it.

Collapse
 
katzy687 profile image
Natti Katz

Amazing! I just started using TSLint and it also gives me let and const recommendations. I probably should have started using a linter earlier. It took the angular cli including it by default with typescript to start linting.