feat(cdk): update tsconfig to more modern settings in typescript init templates #31927
Conversation
…update-typescript-init-template
mrgrain
left a comment
There was a problem hiding this comment.
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 |
aws-cdk-automation
left a comment
There was a problem hiding this comment.
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.jsonare a little outdated and seemed to need update.Description of changes
The following two changes I made:
targetandliboptions at compilerOptions1. Removed unnecessary options
Unnecessary options included in the
compilerOptionsof tsconfig.json.The unnecessary options are as follows
If
strict: trueis 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
targetandliboptions 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