Remove no-unnecessary-qualifier from eslintrc#51456
Remove no-unnecessary-qualifier from eslintrc#51456jakebailey merged 1 commit intomicrosoft:mainfrom
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:
|
weswigham
left a comment
There was a problem hiding this comment.
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-qualifierat all post-modules.no-unnecessary-type-assertionis kinda useful, but does create LKG friction in main.