Skip to content

Commit

Permalink
chore: turn on strict mode everywhere (#18652)
Browse files Browse the repository at this point in the history
I wrote a script that turns on strict mode everywhere (didn't do this by hand :) ). Hopefully this is the direction that we want to go down.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
kaizencc authored Jan 27, 2022
1 parent 6f27bd5 commit 162909f
Show file tree
Hide file tree
Showing 116 changed files with 951 additions and 117 deletions.
9 changes: 8 additions & 1 deletion packages/@aws-cdk/alexa-ask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-amazonmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-appconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions packages/@aws-cdk/aws-appflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
"Framework :: AWS CDK :: 1"
]
}
},
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/@aws-cdk/aws-appintegrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
"distName": "aws-cdk.aws-appintegrations",
"module": "aws_cdk.aws_appintegrations"
}
},
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/@aws-cdk/aws-applicationinsights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
"Framework :: AWS CDK :: 1"
]
}
},
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-appstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions packages/@aws-cdk/aws-aps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
"distName": "aws-cdk.aws-aps",
"module": "aws_cdk.aws_aps"
}
},
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-athena/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"cdk-build": {
"cloudformation": "AWS::Athena",
Expand Down
7 changes: 7 additions & 0 deletions packages/@aws-cdk/aws-auditmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
"distName": "aws-cdk.aws-auditmanager",
"module": "aws_cdk.aws_auditmanager"
}
},
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-autoscaling-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-autoscaling-hooktargets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-autoscalingplans/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-budgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-cassandra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-ce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions packages/@aws-cdk/aws-codeartifact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
"distName": "aws-cdk.aws-codeartifact",
"module": "aws_cdk.aws_codeartifact"
}
},
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/@aws-cdk/aws-codegurureviewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"jsii": {
"outdir": "dist",
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
},
"targets": {
"dotnet": {
"namespace": "Amazon.CDK.AWS.CodeGuruReviewer",
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-codestarconnections/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
]
}
},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 162909f

Please sign in to comment.