Skip to content

Prefer const over let where possible (tslint)

Lukas Möller requested to merge lmoeller/community-solutions:use-const into staging

I generally prefer to use const instead of let whenever it is possible (this possibly is only my personal opinion). I added the rules

    "no-var-keyword": true,
    "no-for-in-array": true,
    "no-inferrable-types": true,
    "prefer-const": true,

to tslint to enforce these rules. The changes are the automatically applied fixes for these rules.

Merge request reports

Loading