diff --git a/.github/workflows/code-style-lint.yml b/.github/workflows/code-style-lint.yml index 2c47471be..471c864e6 100644 --- a/.github/workflows/code-style-lint.yml +++ b/.github/workflows/code-style-lint.yml @@ -32,5 +32,5 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: | - cd source && npm i --only=dev + cd source && npm i npx --y eslint . --ext .ts diff --git a/.gitignore b/.gitignore index d689a94b9..75f544085 100755 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ demo-ui-config.js # System Files **/.DS_Store **/.vscode +**/.idea diff --git a/source/custom-resource/index.ts b/source/custom-resource/index.ts index 2fdec4158..d89f9dd65 100644 --- a/source/custom-resource/index.ts +++ b/source/custom-resource/index.ts @@ -4,7 +4,7 @@ import EC2, { DescribeRegionsRequest } from "aws-sdk/clients/ec2"; import S3, { CreateBucketRequest, PutBucketEncryptionRequest, PutBucketPolicyRequest } from "aws-sdk/clients/s3"; import SecretsManager from "aws-sdk/clients/secretsmanager"; -import axios, { AxiosRequestConfig, AxiosResponse } from "axios"; +import axios, { RawAxiosRequestConfig, AxiosResponse } from "axios"; import { createHash } from "crypto"; import moment from "moment"; import { v4 } from "uuid"; @@ -240,7 +240,7 @@ async function sendCloudFormationResponse( Data: response.Data, }); - const config: AxiosRequestConfig = { + const config: RawAxiosRequestConfig = { headers: { "Content-Type": "", "Content-Length": responseBody.length, @@ -292,7 +292,7 @@ async function sendAnonymousMetric( const payloadStr = JSON.stringify(payload); - const config: AxiosRequestConfig = { + const config: RawAxiosRequestConfig = { headers: { "content-type": "application/json", "content-length": payloadStr.length,