Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronZyLee committed Jul 12, 2023
1 parent a81e3f6 commit c96da6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .codebuild/scripts/lint_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ if [ -z "$PR_NUM" ]; then
fi

# get PR file list, filter out removed files, filter only JS/TS files, then pass to the linter
curl -fsSL https://api.github.com/repos/$PROJECT_USERNAME/$REPO_NAME/pulls/$PR_NUM/files | jq -r '.[] | select(.status!="removed") | .filename' | grep -E '\.(js|jsx|ts|tsx)$' || true | xargs yarn eslint
curl -fsSL https://api.github.com/repos/$PROJECT_USERNAME/$REPO_NAME/pulls/$PR_NUM/files | jq -r '.[] | select(.status!="removed") | .filename' | (grep -E '\.(js|jsx|ts|tsx)$' || true) | xargs yarn eslint --quiet
set +x
2 changes: 1 addition & 1 deletion packages/amplify-codegen-e2e-core/src/utils/add-ci-tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const addCITags = (projectPath: string): void => {
/**
* Add CI tags for code build
* Refer https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
* @param projectPath
* @param projectPath
*/
export const addCodeBuildCITags = (projectPath: string): void => {
const tags = stateManager.getProjectTags(projectPath);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable spellcheck/spell-checker, camelcase, jsdoc/require-jsdoc, @typescript-eslint/no-explicit-any */
/* eslint-disable spellcheck/spell-checker, camelcase, @typescript-eslint/no-explicit-any */
import { CodeBuild } from 'aws-sdk';
import { config } from 'dotenv';
import yargs from 'yargs';
Expand Down Expand Up @@ -257,7 +257,7 @@ const getStacks = async (account: AWSAccountInfo, region: string): Promise<Stack
};

const getCodeBuildClient = (): CodeBuild => {
return new CodeBuild({
return new CodeBuild({
apiVersion: '2016-10-06',
region: 'us-east-1',
});
Expand Down Expand Up @@ -383,7 +383,7 @@ const mergeResourcesByCCIJob = async (
jobId: key,
buckets: src,
}));

const orphanBuckets = {
[ORPHAN]: orphanS3Buckets,
};
Expand Down

0 comments on commit c96da6a

Please sign in to comment.