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:
parent
eb3837f970
commit
7a63f46b35
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue