[no-undef] False positive with default argument in a class method #2956
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
No
no-undef
error should be thrown.Actual Result
Additional Info
The check
no-undef
only triggers the error in class methods with default arguments. If I move the test function out of the class, then no exception is reported.Versions
@typescript-eslint/eslint-plugin
4.14.0
@typescript-eslint/parser
4.14.0
TypeScript
4.0.5
ESLint
7.18.0
node
14.13.1
The text was updated successfully, but these errors were encountered: