From 15466676f58bc8f72ccc9e8b012eb589dc78bb39 Mon Sep 17 00:00:00 2001 From: Lucas Yang Date: Tue, 11 Jun 2024 20:48:56 +0800 Subject: [PATCH] fix: alignment hostname (#61) --- src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index a5f6238..2b46d87 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -89,7 +89,7 @@ cli if (process.env.ESLINT_CONFIG) options.config ||= process.env.ESLINT_CONFIG - console.log(MARK_INFO, `Starting ESLint config inspector at`, c.green(`http://${host}:${port}`), '\n') + console.log(MARK_INFO, `Starting ESLint config inspector at`, c.green(`http://${host === '127.0.0.1' ? 'localhost' : host}:${port}`), '\n') const cwd = process.cwd() const server = await createHostServer({