Skip to content

Commit 9a4b67e

Browse files
committed
chore: update prettier
1 parent b3aa049 commit 9a4b67e

File tree

19 files changed

+106
-104
lines changed

19 files changed

+106
-104
lines changed

examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<title>Consola</title>

examples/index.legacy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<title>Consola</title>

examples/special.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ consola.error(undefined, null, false, true, Number.NaN);
1919
consola.log("We can `monospace` keyword using grave accent charachter!");
2020

2121
consola.log(
22-
"We can also _underline_ words but not_this or this should_not_be_underlined!"
22+
"We can also _underline_ words but not_this or this should_not_be_underlined!",
2323
);
2424

2525
// Nonstandard error

examples/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ConsolaOptions, createConsola } from "../../src";
22
import { randomSentence } from "./sentence";
33

44
export function reporterDemo(
5-
opts: Partial<ConsolaOptions & { fancy: boolean }>
5+
opts: Partial<ConsolaOptions & { fancy: boolean }>,
66
) {
77
const consola = createConsola({
88
...opts,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"is-unicode-supported": "^1.3.0",
8686
"jiti": "^1.18.2",
8787
"lodash": "^4.17.21",
88-
"prettier": "^2.8.8",
88+
"prettier": "^3.0.0",
8989
"sentencer": "^0.2.1",
9090
"sisteransi": "^1.0.5",
9191
"std-env": "^3.3.3",
@@ -98,4 +98,4 @@
9898
"node": "^14.18.0 || >=16.10.0"
9999
},
100100
"packageManager": "[email protected]"
101-
}
101+
}

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/basic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ConsolaInstance, createConsola as _createConsola } from "./consola";
66
export * from "./shared";
77

88
export function createConsola(
9-
options: Partial<ConsolaOptions & { fancy: boolean }> = {}
9+
options: Partial<ConsolaOptions & { fancy: boolean }> = {},
1010
): ConsolaInstance {
1111
// Log level
1212
let level: LogLevel = LogLevels.info;

src/consola.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class Consola {
4444
colors: false,
4545
compact: true,
4646
},
47-
}
47+
},
4848
);
4949

5050
// Create logger functions for current instance
@@ -60,7 +60,7 @@ export class Consola {
6060
// @ts-expect-error
6161
(this as unknown as ConsolaInstance)[type].raw = this._wrapLogFn(
6262
defaults,
63-
true
63+
true,
6464
);
6565
}
6666

@@ -81,7 +81,7 @@ export class Consola {
8181
this.options.level = _normalizeLogLevel(
8282
level,
8383
this.options.types,
84-
this.options.level
84+
this.options.level,
8585
);
8686
}
8787

@@ -347,7 +347,7 @@ export class Consola {
347347
// Auto-resolve when throttle is timed out
348348
this._lastLog.timeout = setTimeout(
349349
resolveLog,
350-
this.options.throttle
350+
this.options.throttle,
351351
);
352352
return; // SPAM!
353353
}
@@ -372,7 +372,7 @@ export class Consola {
372372
function _normalizeLogLevel(
373373
input: LogLevel | LogType | undefined,
374374
types: any = {},
375-
defaultLevel = 3
375+
defaultLevel = 3,
376376
) {
377377
if (input === undefined) {
378378
return defaultLevel;
@@ -409,7 +409,7 @@ Consola.prototype.pause = Consola.prototype.pauseLogs;
409409
Consola.prototype.resume = Consola.prototype.resumeLogs;
410410

411411
export function createConsola(
412-
options: Partial<ConsolaOptions> = {}
412+
options: Partial<ConsolaOptions> = {},
413413
): ConsolaInstance {
414414
return new Consola(options) as ConsolaInstance;
415415
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { ConsolaInstance, createConsola as _createConsola } from "./consola";
88
export * from "./shared";
99

1010
export function createConsola(
11-
options: Partial<ConsolaOptions & { fancy: boolean }> = {}
11+
options: Partial<ConsolaOptions & { fancy: boolean }> = {},
1212
): ConsolaInstance {
1313
// Log level
1414
let level = _getDefaultLogLevel();

src/prompt.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ type inferPromptReturnType<T extends PromptOptions> = T extends TextOptions
5050
export async function prompt<
5151
_ = any,
5252
__ = any,
53-
T extends PromptOptions = TextOptions
53+
T extends PromptOptions = TextOptions,
5454
>(
5555
message: string,
56-
opts: PromptOptions = {}
56+
opts: PromptOptions = {},
5757
): Promise<inferPromptReturnType<T>> {
5858
if (!opts.type || opts.type === "text") {
5959
return (await text({
@@ -75,7 +75,7 @@ export async function prompt<
7575
return (await select({
7676
message,
7777
options: opts.options.map((o) =>
78-
typeof o === "string" ? { value: o, label: o } : o
78+
typeof o === "string" ? { value: o, label: o } : o,
7979
),
8080
})) as any;
8181
}
@@ -84,7 +84,7 @@ export async function prompt<
8484
return (await multiselect({
8585
message,
8686
options: opts.options.map((o) =>
87-
typeof o === "string" ? { value: o, label: o } : o
87+
typeof o === "string" ? { value: o, label: o } : o,
8888
),
8989
required: opts.required,
9090
})) as any;

0 commit comments

Comments
 (0)