Skip to content

Commit 899173f

Browse files
committedDec 1, 2023
style: format repo
1 parent 68b36c7 commit 899173f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed
 

‎.github/workflows/autofix.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: autofix.ci # needed to securely identify the workflow
1+
name: autofix.ci # needed to securely identify the workflow
22

33
on:
44
pull_request:
55
push:
6-
branches: [ "main" ]
6+
branches: ["main"]
77

88
permissions:
99
contents: read
@@ -23,4 +23,4 @@ jobs:
2323
run: pnpm run lint:fix
2424
- uses: autofix-ci/action@bee19d72e71787c12ca0f29de72f2833e437e4c9
2525
with:
26-
commit-message: 'chore: apply automated lint fixes'
26+
commit-message: "chore: apply automated lint fixes"

‎src/prompt.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ export type PromptOptions =
4040
type inferPromptReturnType<T extends PromptOptions> = T extends TextOptions
4141
? string
4242
: T extends ConfirmOptions
43-
? boolean
44-
: T extends SelectOptions
45-
? T["options"][number]
46-
: T extends MultiSelectOptions
47-
? T["options"]
48-
: unknown;
43+
? boolean
44+
: T extends SelectOptions
45+
? T["options"][number]
46+
: T extends MultiSelectOptions
47+
? T["options"]
48+
: unknown;
4949

5050
export async function prompt<
5151
_ = any,

‎src/utils/box.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ export function box(text: string, _opts: BoxOpts = {}) {
284284
opts.style.valign === "center"
285285
? Math.floor((height - textLines.length) / 2)
286286
: opts.style.valign === "top" // eslint-disable-line unicorn/no-nested-ternary
287-
? height - textLines.length - paddingOffset
288-
: height - textLines.length;
287+
? height - textLines.length - paddingOffset
288+
: height - textLines.length;
289289

290290
for (let i = 0; i < height; i++) {
291291
if (i < valignOffset || i >= valignOffset + textLines.length) {

0 commit comments

Comments
 (0)