0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00

Disable console warnings eslint

This commit is contained in:
Matthew Phillips 2022-03-28 09:37:23 -04:00
parent eb3837f970
commit 7a63f46b35

View file

@ -14,12 +14,14 @@ export function createRequest(url: URL | string, headers: HeaderType, method: st
Object.defineProperties(request, { Object.defineProperties(request, {
canonicalURL: { canonicalURL: {
get() { get() {
/* eslint-disable no-console */
console.warn(`Astro.request.canonicalURL has been moved to Astro.canonicalURL`); console.warn(`Astro.request.canonicalURL has been moved to Astro.canonicalURL`);
return undefined; return undefined;
} }
}, },
params: { params: {
get() { get() {
/* eslint-disable no-console */
console.warn(`Astro.request.params has been moved to Astro.params`); console.warn(`Astro.request.params has been moved to Astro.params`);
return undefined; return undefined;
} }