From 7a63f46b357f094786c892a26a2e36722b5ac562 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Mon, 28 Mar 2022 09:37:23 -0400 Subject: [PATCH] Disable console warnings eslint --- packages/astro/src/core/request.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/astro/src/core/request.ts b/packages/astro/src/core/request.ts index 4c64fd7b5a..f82b2e4bb5 100644 --- a/packages/astro/src/core/request.ts +++ b/packages/astro/src/core/request.ts @@ -14,12 +14,14 @@ export function createRequest(url: URL | string, headers: HeaderType, method: st Object.defineProperties(request, { canonicalURL: { get() { + /* eslint-disable no-console */ console.warn(`Astro.request.canonicalURL has been moved to Astro.canonicalURL`); return undefined; } }, params: { get() { + /* eslint-disable no-console */ console.warn(`Astro.request.params has been moved to Astro.params`); return undefined; }