-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(cdk): update tsconfig to more modern settings in typescript init templates #31927
feat(cdk): update tsconfig to more modern settings in typescript init templates #31927
Conversation
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.
Nice! Going by this https://www.npmjs.com/package/@tsconfig/node-lts we should set the target to ES2022
and lib
to include ES2023
.
strictPropertyInitialization
can also be removed.
…update-typescript-init-template
This reverts commit 1917f40.
Thank you review! I fixed in the following commit.
If it is better not to remove, I will reset this commit. 6a66600 |
Ha nice catch. Let's keep it set to |
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.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
6a66600
to
8c3d56b
Compare
I have set Also, there is no README and test, and CI seems to be failing. The PR that made a similar change to this PR did not seem to have updated the README or test... |
Great! I can take care of the PR "requirements" ;) Disabled readme and test reqs. This is a change to code that has existing tests. Will run through the cli test pipeline. |
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
➡️ PR build request submitted to A maintainer must now check the pipeline and add the |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
n/A
Reason for this change
I think contents of
tsconfig.json
are a little outdated and seemed to need update.Description of changes
The following two changes I made:
target
andlib
options at compilerOptions1. Removed unnecessary options
Unnecessary options included in the
compilerOptions
of tsconfig.json.The unnecessary options are as follows
If
strict: true
is specified in compilerOptions, these options will also betrue
, so there is no need to specify them.see: https://www.typescriptlang.org/tsconfig/#strict
2. Updated
target
andlib
options at compilerOptionsDescription of how you validated changes
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license