I am running TSLint (v5.3.2) with my typescript project. I get the Forbidden keyword 'var', instead of 'let' or 'const' instead , but I do not use 'var', and this indicates my use of 'let' or 'const'.
For example, here is the codeFrame format of the error to show that I am using 'const' and not 'var':
Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
58 | .map((response) => {
59 |
> 60 | const tokensValid = response['isvalid'] === true;
| ^
61 | if (tokensValid) {
62 | this.loggedIn$.next(true);
63 | return true;
So far, I have not been able to figure out why I am getting this error. Any ideas?
Thank.
source
share