[no-use-before-define] no-use-before-define rule reports an wrong error for class method #2965
Closed
3 tasks done
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
The
no-use-before-define
rule should not report error. The above example code is valid.Actual Result
"'a' was used before it was defined. " error was reported
Additional Info
This issue occurs when I tried to update
@typescript-eslint/eslint-plugin
to v4.14.0 from v4.13.0 (The original PR is Quramy/ts-graphql-plugin#325 )And the following code, which has the similar argument definition, is still valid.
Versions
@typescript-eslint/eslint-plugin
4.14.0
@typescript-eslint/parser
4.14.0
TypeScript
4.1.3
ESLint
7.18.0
node
14.15.0
The text was updated successfully, but these errors were encountered: