Skip to content

Commit

Permalink
chore(amplify): turn on awslint (#27766)
Browse files Browse the repository at this point in the history
We've been bad and turned off awslint for a while. This turns it back on so future commits to this module will have to play nice with the linter.

----

*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 Oct 30, 2023
1 parent 292eec6 commit b545448
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-amplify-alpha/awslint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"exclude": [
"*:*"
"construct-ctor-props-optional:@aws-cdk/aws-amplify-alpha.App"
]
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-amplify-alpha/lib/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export interface AppProps {
* generated (SSG) apps (i.e. a Create React App or Gatsby) and WEB_COMPUTE
* for server side rendered (SSR) apps (i.e. NextJS).
*
* @default - WEB
* @default Platform.WEB
*/
readonly platform?: Platform;
}
Expand Down Expand Up @@ -539,6 +539,9 @@ function renderCustomResponseHeaders(customHeaders: CustomResponseHeader[]): str
return `${yaml.join('\n')}\n`;
}

/**
* Available hosting platforms to use on the App.
*/
export enum Platform {
/**
* WEB - Used to indicate that the app is hosted using only static assets.
Expand Down

0 comments on commit b545448

Please sign in to comment.