-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Remove no-unnecessary-qualifier from eslintrc #51456
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
Remove no-unnecessary-qualifier from eslintrc #51456
Conversation
Thanks for the PR! It looks like you've changed the TSServer protocol in some way. Please ensure that any changes here don't break consumers of the current TSServer API. For some extra review, we'll ping @sheetalkamat, @amcasey, @mjbvz, @minestarks for you. Feel free to loop in other consumers/maintainers if necessary |
In CI:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no-unnecessary-qualifier
was 100% a namespace thing that we don't really need anymore - technically you could have both a ns and non-ns import giving you access to something, but I think it's less of an issue now, since using the ns imports at all is comparatively rare.
no-unnecessary-type-assertion
feels exactly like the kind of rule we could have a non-error quickfix/suggestion for in the compiler itself to avoid the perf cost, since the comparison we pretty much already do when checking the cast.
For reference, this is
And after:
|
Also anecdotally, |
Per the design meeting, I'll remove the |
1b82f38
to
02c0756
Compare
For discussion; this saves a lot of lint time.
I don't think we need
no-unnecessary-qualifier
at all post-modules.no-unnecessary-type-assertion
is kinda useful, but does create LKG friction in main.