-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[no-unnecessary-type-arguments] false positives after upgrading from 5.11.0 to 5.12.0 #4554
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
Comments
I'm unable to reproduce this against master. playground |
Strange. I have the same problem in multiple repositories and just double checked and simply reverting to version 5.11.0 eliminates the false positive. |
I have updated the configuration with the complete configuration from |
Weirdly it reproduces locally - but not in the playground. |
Per typescript-eslint/typescript-eslint#4554, the rule against unnecessarily specifying the type for a generic is currently producing false positives. I have disabled it for now, but it should probably be turned back on once the upstream bug is fixed.
A bunch of false positives for us as well with 5.12.0 (while 5.11.0 is fine). |
Repro
Expected Result
No warning
Actual Result
The use of the
HTMLInputElement
instead of the defaultElement
types is reported as warningThis is the default value for this type parameter, so it can be omitted.
Additional Info
Versions
@typescript-eslint/eslint-plugin
5.12.0
@typescript-eslint/parser
5.12.0
TypeScript
4.5.5
ESLint
8.9.0
node
16.14.0
The text was updated successfully, but these errors were encountered: