0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -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, {
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;
}