Skip to content

Commit b04eccd

Browse files
committed
chore: Format
1 parent 2fe1e0b commit b04eccd

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed

.github/workflows/_helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { action, Job, NormalJobConfig } from "ghats";
1+
import { action, Job, type NormalJobConfig } from "ghats";
22

33
export type SetupJobConfig = Omit<NormalJobConfig, "runsOn"> & {
44
withBun?: boolean;

lib/cli/commands/install/type-def.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export type InstalledActionParams<T extends InstalledAction> = Omit<
7272
`}[T];`,
7373
);
7474

75-
return actionDtsLines.join("\n") + "\n";
75+
return `${actionDtsLines.join("\n")}\n`;
7676
}
7777

7878
function _buildInputsTypeDefinition(action: string, actionYaml: ActionYaml) {
@@ -102,5 +102,5 @@ function _buildInputsTypeDefinition(action: string, actionYaml: ActionYaml) {
102102

103103
lines.push("};");
104104

105-
return lines.join("\n") + "\n";
105+
return `${lines.join("\n")}\n`;
106106
}

lib/cli/lib/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function saveActionsJson(actionsJson: ActionsJson) {
3838
_prepareGitHubDir();
3939
fs.writeFileSync(
4040
_actionsJsonPath(),
41-
JSON.stringify(sortedActionsJson, null, 2) + "\n",
41+
`${JSON.stringify(sortedActionsJson, null, 2)}\n`,
4242
);
4343
}
4444

@@ -64,6 +64,6 @@ export function saveActionsLockJson(actionsLockJson: ActionsLockJson) {
6464
_prepareGitHubDir();
6565
fs.writeFileSync(
6666
_actionsLockJsonPath(),
67-
JSON.stringify(sortedActionsLockJson, null, 2) + "\n",
67+
`${JSON.stringify(sortedActionsLockJson, null, 2)}\n`,
6868
);
6969
}

lib/cli/lib/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export function toUpperCamelCase(str: string): string {
22
return str
3-
.split(/[-_\/]/)
3+
.split(/[-_/]/)
44
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
55
.join("");
66
}

lib/internal/concurrency.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, test } from "bun:test";
22
import { concurrencyJSON } from "../internal/concurrency";
3-
import { type Concurrency } from "../package/concurrency";
3+
import type { Concurrency } from "../package/concurrency";
44

55
describe("concurrencyJSON", () => {
66
test.each<[Concurrency, ReturnType<typeof concurrencyJSON>]>([

lib/internal/on.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, test } from "bun:test";
2-
import { type On } from "../package/on";
2+
import type { On } from "../package/on";
33
import { onJSON } from "./on";
44

55
describe("onJSON", () => {

lib/internal/permissions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, test } from "bun:test";
2-
import { type Permissions } from "../package/permissions";
2+
import type { Permissions } from "../package/permissions";
33
import { permissionsJSON } from "./permissions";
44

55
describe("permissionsJSON", () => {

lib/internal/step.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, test } from "bun:test";
2-
import { type Step } from "../package/step";
2+
import type { Step } from "../package/step";
33
import { stepJSON } from "./step";
44

55
describe("stepJSON", () => {

lib/package/job.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import { environmentJSON } from "../internal/environment";
66
import { permissionsJSON } from "../internal/permissions";
77
import { stepJSON } from "../internal/step";
88
import { strategyJSON } from "../internal/strategy";
9-
import { type Concurrency } from "./concurrency";
9+
import type { Concurrency } from "./concurrency";
1010
import type { Container } from "./container";
1111
import type { Defaults } from "./defaults";
1212
import type { Env } from "./env";
1313
import type { Environment } from "./environment";
1414
import type { Expression } from "./expression";
15-
import { type Permissions } from "./permissions";
15+
import type { Permissions } from "./permissions";
1616
import type { RunsOn } from "./runs-on";
17-
import { type RunStep, type Step, type UsesStep } from "./step";
17+
import type { RunStep, Step, UsesStep } from "./step";
1818
import type { Strategy } from "./strategy";
1919

2020
type JobConfigBase = {

lib/package/workflow.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { defaultsJSON } from "../internal/defaults";
33
import { envJSON } from "../internal/env";
44
import { onJSON } from "../internal/on";
55
import { permissionsJSON } from "../internal/permissions";
6-
import { type Concurrency } from "./concurrency";
6+
import type { Concurrency } from "./concurrency";
77
import type { Defaults } from "./defaults";
8-
import { type Env } from "./env";
9-
import { Job } from "./job";
10-
import { type On } from "./on";
11-
import { type Permissions } from "./permissions";
8+
import type { Env } from "./env";
9+
import type { Job } from "./job";
10+
import type { On } from "./on";
11+
import type { Permissions } from "./permissions";
1212

1313
export type WorkflowConfig = {
1414
/**

0 commit comments

Comments
 (0)