diff --git a/packages/astro/src/cli/index.ts b/packages/astro/src/cli/index.ts index 4b760100ca..fb8ebc5b9d 100644 --- a/packages/astro/src/cli/index.ts +++ b/packages/astro/src/cli/index.ts @@ -198,6 +198,6 @@ async function throwAndExit(cmd: string, err: unknown) { setTimeout(exitWithErrorMessage, 400); // Wait for the telemetry event to send, then exit. Ignore any error. await telemetryPromise - .catch((err) => debug('telemetry', `record() error: ${err.message}`)) + .catch((e) => debug('telemetry', `record() error: ${e.message}`)) .then(exitWithErrorMessage); } diff --git a/packages/integrations/image/src/index.ts b/packages/integrations/image/src/index.ts index e44b7230b9..be9eda1e2a 100644 --- a/packages/integrations/image/src/index.ts +++ b/packages/integrations/image/src/index.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import type { AstroConfig, AstroIntegration } from 'astro'; import fs from 'fs/promises'; import path from 'path'; diff --git a/packages/integrations/image/src/vite-plugin-astro-image.ts b/packages/integrations/image/src/vite-plugin-astro-image.ts index f1b11ad099..6cd521f40b 100644 --- a/packages/integrations/image/src/vite-plugin-astro-image.ts +++ b/packages/integrations/image/src/vite-plugin-astro-image.ts @@ -31,8 +31,8 @@ export function createPlugin(config: AstroConfig, options: Required }; -interface EventMeta extends SystemInfo {} +type EventMeta = SystemInfo interface EventContext extends ProjectInfo { anonymousId: string; anonymousSessionId: string;