[no-loop-func] New false positive in 4.0.0 when using a global type in a function in a loop #2448
Closed
3 tasks done
Labels
enhancement: new base rule extension
New base rule extension required to handle a TS specific case
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Milestone
Repro
It is important here that the type is defined globally for the project in a different file. If the type is defined in the same file, the problem does not appear.
Expected Result
no-loop-func does not report an error
Actual Result
no-loop-func reports the following error:
Additional Info
Versions
@typescript-eslint/eslint-plugin
4.0.1
@typescript-eslint/parser
4.0.1
TypeScript
3.9.3
ESLint
7.7.0
node
12.16.2
I suspect this could be related to #2039 maybe?
The text was updated successfully, but these errors were encountered: