diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 22:16:29 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 22:17:26 +0100 |
commit | fb7118ff1c8f0dcd61f15e51b193512283d83fa1 (patch) | |
tree | 721cee6a64b44a56b7f05f39750a65cda5fb4ef6 /packages/main/src/utils/log.ts | |
parent | build: Add eslint-plugin-jest (diff) | |
download | sophie-fb7118ff1c8f0dcd61f15e51b193512283d83fa1.tar.gz sophie-fb7118ff1c8f0dcd61f15e51b193512283d83fa1.tar.zst sophie-fb7118ff1c8f0dcd61f15e51b193512283d83fa1.zip |
build: Add eslint-plugin-unicorn
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/main/src/utils/log.ts')
-rw-r--r-- | packages/main/src/utils/log.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/main/src/utils/log.ts b/packages/main/src/utils/log.ts index 5218721..0a632d8 100644 --- a/packages/main/src/utils/log.ts +++ b/packages/main/src/utils/log.ts | |||
@@ -18,8 +18,9 @@ | |||
18 | * SPDX-License-Identifier: AGPL-3.0-only | 18 | * SPDX-License-Identifier: AGPL-3.0-only |
19 | */ | 19 | */ |
20 | 20 | ||
21 | // eslint-disable-next-line unicorn/import-style -- Import the type `ChalkInstance` separately. | ||
21 | import chalk, { ChalkInstance } from 'chalk'; | 22 | import chalk, { ChalkInstance } from 'chalk'; |
22 | import loglevel, { Logger } from 'loglevel'; | 23 | import loglevel from 'loglevel'; |
23 | import prefix from 'loglevel-plugin-prefix'; | 24 | import prefix from 'loglevel-plugin-prefix'; |
24 | 25 | ||
25 | if (import.meta.env?.DEV) { | 26 | if (import.meta.env?.DEV) { |
@@ -54,7 +55,7 @@ prefix.apply(loglevel, { | |||
54 | }, | 55 | }, |
55 | }); | 56 | }); |
56 | 57 | ||
57 | export function getLogger(loggerName: string): Logger { | 58 | export function getLogger(loggerName: string): loglevel.Logger { |
58 | return loglevel.getLogger(loggerName); | 59 | return loglevel.getLogger(loggerName); |
59 | } | 60 | } |
60 | 61 | ||