telerik / mobile-cli-lib

Contains common infrastructure for CLIs - mainly AppBuilder, NativeScript, DDB and Proton.
Apache License 2.0
11 stars 10 forks source link

Add prefer-const rule to tslint #1009

Closed rosen-vladimirov closed 7 years ago

rosen-vladimirov commented 7 years ago

Enable prefer-const rule in tslint and fix the errors: The rule requires that variable declarations use const instead of let and var if possible.

If a variable is only assigned to once when it is declared, it should be declared using const

The prefer-const rule checks the code and verifies the usage of let and const