From 41236589cc3fc577101f57e8edcdc17df83d5aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Tue, 3 Sep 2024 10:39:15 +0200 Subject: [PATCH] chore: ignore eslint warnings about console logging (#28795) --- packages/nuxt/src/core/nuxt.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/nuxt/src/core/nuxt.ts b/packages/nuxt/src/core/nuxt.ts index a29c4f8314..cb9fcb243b 100644 --- a/packages/nuxt/src/core/nuxt.ts +++ b/packages/nuxt/src/core/nuxt.ts @@ -104,6 +104,7 @@ async function initNuxt (nuxt: Nuxt) { const shouldShowPrompt = nuxt.options.dev && hasTTY && !isCI if (!shouldShowPrompt) { + // eslint-disable-next-line no-console console.log(`Using \`${fallbackCompatibilityDate}\` as fallback compatibility date.`) } @@ -113,6 +114,7 @@ async function initNuxt (nuxt: Nuxt) { default: true, }) if (result !== true) { + // eslint-disable-next-line no-console console.log(`Using \`${fallbackCompatibilityDate}\` as fallback compatibility date.`) return } @@ -147,6 +149,7 @@ async function initNuxt (nuxt: Nuxt) { consola.error(`Failed to update config: ${message}`) } + // eslint-disable-next-line no-console console.log(`Using \`${fallbackCompatibilityDate}\` as fallback compatibility date.`) } @@ -156,6 +159,7 @@ async function initNuxt (nuxt: Nuxt) { nitro.hooks.hookOnce('compiled', () => { warnedAboutCompatDate = true // Print warning + // eslint-disable-next-line no-console console.info(`Nuxt now supports pinning the behavior of provider and deployment presets with a compatibility date. We recommend you specify a \`compatibilityDate\` in your \`nuxt.config\` file, or set an environment variable, such as \`COMPATIBILITY_DATE=${todaysDate}\`.`) if (shouldShowPrompt) { promptAndUpdate() } }) @@ -665,6 +669,7 @@ async function initNuxt (nuxt: Nuxt) { // Show compatibility version banner when Nuxt is running with a compatibility version // that is different from the current major version if (!(satisfies(nuxt._version, nuxt.options.future.compatibilityVersion + '.x'))) { + // eslint-disable-next-line no-console console.info(`Running with compatibility version \`${nuxt.options.future.compatibilityVersion}\``) }