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:
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, {
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue