Skip to content
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(docs-infra): remove todo and skipLibCheck left behind from typescript 5… #54855

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arjenbrandenburgh
Copy link

@arjenbrandenburgh arjenbrandenburgh commented Mar 14, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

The adev/tsconfig.json file in the Angular development setup currently has the TypeScript compiler option skipLibCheck set to true. This setting, a temporary measure noted for accommodating TypeScript version 5.4 support, disables type-checking for declaration files of installed libraries. This was done in #54414.

What is the new behavior?

This PR reverses the temporary disabling of library type checks ("skipLibCheck": true) in adev/tsconfig.json. Re-enabling these checks ensures stricter type safety during TypeScript compilation, enhancing Angular's code quality and stability.

Does this PR introduce a breaking change?

  • Yes
  • No

Copy link

google-cla bot commented Mar 14, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@pullapprove pullapprove bot requested a review from atscott March 14, 2024 09:25
@JoostK
Copy link
Member

JoostK commented Mar 14, 2024

Although the change LGTM, this should not be fix(core) since it's not affecting core. build(docs-infra) seems more appropriate.

@arjenbrandenburgh
Copy link
Author

arjenbrandenburgh commented Mar 14, 2024

Hey fellow Utrechter, you're absolutely right. I did find it challenging to pinpoint the exact right tag for this one. Thanks for pointing out that build(docs-infra) would be a more fitting choice given the context of the change since it entails a tsconfig file.

@arjenbrandenburgh arjenbrandenburgh changed the title fix(core): remove todo and skipLibCheck left behind from typescript 5… build(docs-infra): remove todo and skipLibCheck left behind from typescript 5… Mar 14, 2024
@crisbeto
Copy link
Member

Let's wait and see, but I think that this will fail the release check since the Angular version for adev would have to be set to 17.3 first. I think that would happen in another repo.

@alan-agius4
Copy link
Contributor

Note for context in the Angular CLI we removed this from users projects due to TypeScript recommending this. https://www.typescriptlang.org/tsconfig#skipLibCheck

@dylhunn dylhunn added the area: docs-infra Angular.dev application and infrastructure label Mar 27, 2024
@ngbot ngbot bot added this to the Backlog milestone Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs-infra Angular.dev application and infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants