-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(multiple): enable noImplicitOverride
typescript option (#22830)
#23091
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
Conversation
…gular#22830) * refactor(multiple): enable `noImplicitOverride` typescript option Enables the TypeScript `noImplicitOverride` option and adds the `override` keyword where needed. * build: add yarn script alias for tsc Adds a `yarn run` alias for the `tsc` binary. Since we have multiple versions of TypeScript installed, Yarn can pick another version (e.g. from `typescript-4.2`) for linking the `tsc` binary. This is unexpected because `yarn tsc` should resolve to the TypeScript version that is not installed through a Yarn alias. Changing the order in the Yarn lock file does not help, and it seems expected in the context of Yarn which does not know which package (regardless of alias or not) to prefer.
This comment has been minimized.
This comment has been minimized.
…satisfy noImplicitOverride (angular#23017) Given we merged the `noImplicitOverride` PR together with a couple of other PRs, new methods could have been introduced that did not use the `override` keyword. This is the case for the MDC tooltip `_onShow` method. This commit adds the necessary `override` keyword.
This comment has been minimized.
This comment has been minimized.
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. Looks like the issue was that the noImplicitOverride
PR still had the target: minor
label while 12.1.x
already became the latest release train w/ TS 4.3 support.
@googlebot I consent. |
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
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. |
noImplicitOverride
typescript optionEnables the TypeScript
noImplicitOverride
option and addsthe
override
keyword where needed.Adds a
yarn run
alias for thetsc
binary. Since we havemultiple versions of TypeScript installed, Yarn can pick
another version (e.g. from
typescript-4.2
) for linkingthe
tsc
binary. This is unexpected becauseyarn tsc
shouldresolve to the TypeScript version that is not installed through
a Yarn alias. Changing the order in the Yarn lock file does not
help, and it seems expected in the context of Yarn which does not
know which package (regardless of alias or not) to prefer.