-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[@typescript-eslint/typedef] In the class, even if there are types, there will still check not passed #4033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
3 tasks done
duan602728596 opened this issue
Oct 20, 2021
· 4 comments
· Fixed by #4034 · 4 remaining pull requests
Closed
3 tasks done
[@typescript-eslint/typedef] In the class, even if there are types, there will still check not passed #4033
duan602728596 opened this issue
Oct 20, 2021
· 4 comments
· Fixed by #4034 · 4 remaining pull requests
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Comments
I am unable to reproduce this against master. |
This is the address of a demo: https://github.com/duan602728596/eslint-ts-typedef-bug This code passed the test. However, if you use idea or use command to check, there will be errors.
|
regression introduced by https://github.com/typescript-eslint/typescript-eslint/pull/3922/files#r732411607 |
bradzacher
added a commit
that referenced
this issue
Oct 20, 2021
bradzacher
added a commit
that referenced
this issue
Oct 20, 2021
Tested |
CatsMiaow
added a commit
to CatsMiaow/eslint-config
that referenced
this issue
Oct 25, 2021
This was referenced Oct 26, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
Eslint check passed.
Actual Result
Line 2:
ESLint: Expected str to have a type annotation.(@typescript-eslint/typedef).
Line 3:
ESLint: Expected a type annotation.(@typescript-eslint/typedef).
Line 5:
ESLint: Expected func to have a type annotation.(@typescript-eslint/typedef).
Additional Info
Versions
@typescript-eslint/eslint-plugin
5.1.0
@typescript-eslint/parser
5.1.0
TypeScript
4.4.4
ESLint
8.0.1
node
16.11.1
The text was updated successfully, but these errors were encountered: