Skip to content

Commit 130afa6

Browse files
authored
Merge branch 'develop' into chore/ignore-package-lock
2 parents 50ad5e8 + d0ead90 commit 130afa6

File tree

18 files changed

+63
-34
lines changed

18 files changed

+63
-34
lines changed

.github/workflows/cdk-nag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
node-version: ${{ matrix.node-version }}
2424
- run: |
2525
cd source/constructs && npm i --only=dev
26-
npx cdk synth
26+
npx cdk synth

.github/workflows/code-style-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
node-version: ${{ matrix.node-version }}
3434
- run: |
3535
cd source && npm i --only=dev
36-
npx --y eslint . --ext .ts
36+
npx --y eslint . --ext .ts

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
- uses: github/codeql-action/init@v2
2222
with:
2323
languages: ${{ matrix.language }}
24-
- uses: github/codeql-action/analyze@v2
24+
- uses: github/codeql-action/analyze@v2

.github/workflows/run-unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
node-version: ${{ matrix.node-version }}
2424
- run: |
2525
cd deployment
26-
chmod +x ./run-unit-tests.sh && DEBUG=true ./run-unit-tests.sh
26+
chmod +x ./run-unit-tests.sh && DEBUG=true ./run-unit-tests.sh

.viperlightignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/*
2+
CONTRIBUTING.md:46
3+
CODE_OF_CONDUCT.md:4
4+
coverage/*
5+
.zip

.viperlightrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"all": true,
3+
"failOn": "medium"
4+
}

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ When filing an issue, please check [existing open](https://github.com/aws-soluti
2222
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
2323

2424
1. You are working against the latest source on the _main_ branch.
25-
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
26-
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
25+
1. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
26+
1. You open an issue to discuss any significant work - we would hate for your time to be wasted.
2727

2828
To send us a pull request, please:
2929

3030
1. Fork the repository.
31-
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
32-
3. Ensure local tests pass.
33-
4. Commit to your fork using clear commit messages.
34-
5. Send us a pull request, answering any default questions in the pull request interface.
35-
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
31+
1. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
32+
1. Ensure local tests pass.
33+
1. Commit to your fork using clear commit messages.
34+
1. Send us a pull request, answering any default questions in the pull request interface.
35+
1. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
3636

3737
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and [creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
3838

source/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.d.ts
33
node_modules
44
coverage
5+
**/test/*

source/.eslintrc.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"sourceType": "module",
1212
"project": "**/tsconfig.json"
1313
},
14-
"ignorePatterns": ["**/*.js"],
14+
"ignorePatterns": ["**/*.js", "**/node_modules/**"],
1515
"extends": [
1616
"eslint:recommended",
1717
"plugin:@typescript-eslint/recommended",
@@ -38,6 +38,8 @@
3838

3939
"jsdoc/require-param-type": ["off"],
4040
"jsdoc/require-returns-type": ["off"],
41-
"jsdoc/newline-after-description": ["off"]
41+
"jsdoc/newline-after-description": ["off"],
42+
43+
"import/no-unresolved": 1 // warn only on Unable to resolve path import/no-unresolved
4244
}
4345
}

source/constructs/lib/back-end/back-end-construct.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ export class BackEnd extends Construct {
155155
const cloudFrontDistributionProps: DistributionProps = {
156156
comment: "Image Handler Distribution for Serverless Image Handler",
157157
defaultBehavior: {
158-
origin: origin,
158+
origin,
159159
allowedMethods: AllowedMethods.ALLOW_GET_HEAD,
160160
viewerProtocolPolicy: ViewerProtocolPolicy.HTTPS_ONLY,
161-
originRequestPolicy: originRequestPolicy,
162-
cachePolicy: cachePolicy,
161+
originRequestPolicy,
162+
cachePolicy,
163163
},
164164
priceClass: props.cloudFrontPriceClass as PriceClass,
165165
enableLogging: true,
@@ -192,9 +192,9 @@ export class BackEnd extends Construct {
192192
{
193193
existingLambdaObj: imageHandlerLambdaFunction,
194194
insertHttpSecurityHeaders: false,
195-
logGroupProps: logGroupProps,
196-
cloudFrontDistributionProps: cloudFrontDistributionProps,
197-
apiGatewayProps: apiGatewayProps,
195+
logGroupProps,
196+
cloudFrontDistributionProps,
197+
apiGatewayProps,
198198
}
199199
);
200200

0 commit comments

Comments
 (0)