[@typescript-eslint/typedef] variableDeclaration broken with for..of loops #783
Labels
bug
Something isn't working
good first issue
Good for newcomers
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
The error should not be reported for a for..of loop variable.
Actual Result
The error is reported. The error is impossible to fix, because TypeScript does not allow type annotations here.
Additional Info
TSLint encountered this same problem as palantir/tslint#743.
Their fix is here and might be relevant: palantir/tslint#745
Versions
@typescript-eslint/eslint-plugin
2.0.0-alpha.4
@typescript-eslint/parser
1.13.0
TypeScript
3.5.3
ESLint
6.1.0
The text was updated successfully, but these errors were encountered: