Skip to content

Commit

Permalink
Merge pull request #225 from sripwoud/lint-format
Browse files Browse the repository at this point in the history
chore: format, lint
  • Loading branch information
ctrlc03 authored Nov 2, 2023
2 parents fa1ab7d + c61547e commit eac5cb3
Show file tree
Hide file tree
Showing 16 changed files with 357 additions and 362 deletions.
23 changes: 21 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
"no-bitwise": "off",
"no-await-in-loop": "off",
"no-restricted-syntax": "off",
"no-console": ["warn", { "allow": ["info", "warn", "error", "log"] }],
"no-console": [
"warn",
{
"allow": ["info", "warn", "error", "log"]
}
],
"@typescript-eslint/lines-between-class-members": "off",
"no-plusplus": "off",
"@typescript-eslint/no-unused-expressions": "warn",
Expand All @@ -28,5 +33,19 @@
"no-promise-executor-return": "warn",
"prefer-promise-reject-errors": "warn",
"@typescript-eslint/no-shadow": "warn"
}
},
"overrides": [
{
"files": ["packages/actions/src/helpers/utils.ts"],
"rules": {
"no-useless-escape": "off"
}
},
{
"files": ["packages/**/*.test.ts"],
"rules": {
"@typescript-eslint/no-unused-expressions": "off"
}
}
]
}
140 changes: 68 additions & 72 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,74 +1,70 @@
{
"packages": [
"packages/*"
],
"npmClient": "yarn",
"version": "1.0.9",
"changelogPreset": {
"name": "conventionalcommits",
"issuePrefixes": [
"#"
],
"issueUrlFormat": "{{host}}/{{owner}}/{{repository}}/issues/{{id}}",
"commitUrlFormat": "{{host}}/{{owner}}/{{repository}}/commit/{{hash}}",
"compareUrlFormat": "{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}",
"userUrlFormat": "{{host}}/{{user}}",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "feature",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "revert",
"section": "Reverts"
},
{
"type": "docs",
"section": "Documentation",
"hidden": true
},
{
"type": "style",
"section": "Styles",
"hidden": true
},
{
"type": "chore",
"section": "Miscellaneous Chores",
"hidden": true
},
{
"type": "refactor",
"section": "Code Refactoring",
"hidden": true
},
{
"type": "test",
"section": "Tests",
"hidden": true
},
{
"type": "build",
"section": "Build System",
"hidden": true
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": true
}
]
}
"packages": ["packages/*"],
"npmClient": "yarn",
"version": "1.0.9",
"changelogPreset": {
"name": "conventionalcommits",
"issuePrefixes": ["#"],
"issueUrlFormat": "{{host}}/{{owner}}/{{repository}}/issues/{{id}}",
"commitUrlFormat": "{{host}}/{{owner}}/{{repository}}/commit/{{hash}}",
"compareUrlFormat": "{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}",
"userUrlFormat": "{{host}}/{{user}}",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "feature",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "revert",
"section": "Reverts"
},
{
"type": "docs",
"section": "Documentation",
"hidden": true
},
{
"type": "style",
"section": "Styles",
"hidden": true
},
{
"type": "chore",
"section": "Miscellaneous Chores",
"hidden": true
},
{
"type": "refactor",
"section": "Code Refactoring",
"hidden": true
},
{
"type": "test",
"section": "Tests",
"hidden": true
},
{
"type": "build",
"section": "Build System",
"hidden": true
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": true
}
]
}
}
2 changes: 1 addition & 1 deletion packages/actions/src/helpers/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ export const githubReputation = async (

return {
reputable: true,
avatarUrl: avatarUrl
avatarUrl
}
}
6 changes: 3 additions & 3 deletions packages/actions/src/helpers/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import mime from "mime-types"
import fs, { createWriteStream } from "fs"
import fetch from "@adobe/node-fetch-retry"
import https from "https"
import { GenericBar } from "cli-progress"
import { ETagWithPartNumber, ChunkWithUrl, TemporaryParticipantContributionData } from "../types/index"
import { commonTerms } from "./constants"
import {
Expand All @@ -13,7 +14,6 @@ import {
temporaryStoreCurrentContributionMultiPartUploadId,
temporaryStoreCurrentContributionUploadedChunkData
} from "./functions"
import { GenericBar } from "cli-progress"

/**
* Return the bucket name based on ceremony prefix.
Expand Down Expand Up @@ -169,7 +169,7 @@ export const multiPartUpload = async (
configStreamChunkSize: number,
ceremonyId?: string,
temporaryDataToResumeMultiPartUpload?: TemporaryParticipantContributionData,
logger?: GenericBar
logger?: GenericBar
) => {
// The unique identifier of the multi-part upload.
let multiPartUploadId: string = ""
Expand Down Expand Up @@ -210,7 +210,7 @@ export const multiPartUpload = async (
cloudFunctions,
ceremonyId,
alreadyUploadedChunks,
logger
logger
)

// Step (3).
Expand Down
Loading

0 comments on commit eac5cb3

Please sign in to comment.