-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: enforce consistent readonly array type #20290
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
build: enforce consistent readonly array type #20290
Conversation
1c6bbcd
to
7275a3f
Compare
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.
LGTM, but @jelbourn might have some opinions here.
@@ -7,7 +7,7 @@ | |||
*/ | |||
|
|||
import {ViewportRuler} from '@angular/cdk/scrolling'; | |||
import {getMutableClientRect, adjustClientRect} from './client-rect'; | |||
import {adjustClientRect, getMutableClientRect} from './client-rect'; |
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.
Note that reordering the imports will make it harder to land and will cause conflicts with existing PRs.
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.
Note that reordering the imports will make it harder to land and will cause conflicts with existing PRs.
That's my IDE config configuration, it always sorts it alphabetically :)
Anyway, if it causes too much noise, I can disable this configuration and rollback it.
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.
It might be best to roll it back since it causes a lot of churn for existing PRs.
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.
LGTM, marking as major out of an abundance of caution, I'd also like @andrewseguin to take a look
efde4ef
to
af70d96
Compare
af70d96
to
3a8e5f7
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Relates to:
This PR brings normalization on the form of write readonly arrays:
readonly TYPE []
.Note that for some cases, specifically truly constants, I've opted out to use
as const
as it's shorter and fully immutable without the need of declaring the type.