mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
chore(lint): fix lint issues
This commit is contained in:
parent
515e876598
commit
465f204b27
5 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-console */
|
||||
import type { AstroConfig, AstroIntegration } from 'astro';
|
||||
import fs from 'fs/promises';
|
||||
import path from 'path';
|
||||
|
|
|
@ -31,8 +31,8 @@ export function createPlugin(config: AstroConfig, options: Required<IntegrationO
|
|||
return {
|
||||
name: '@astrojs/image',
|
||||
enforce: 'pre',
|
||||
configResolved(config) {
|
||||
resolvedConfig = config;
|
||||
configResolved(_config) {
|
||||
resolvedConfig = _config;
|
||||
},
|
||||
async resolveId(id) {
|
||||
// The virtual model redirects imports to the ImageService being used
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-console */
|
||||
import type { AstroConfig, AstroIntegration } from 'astro';
|
||||
import {
|
||||
EnumChangefreq,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { getSystemInfo, SystemInfo } from './system-info.js';
|
|||
export type AstroTelemetryOptions = { astroVersion: string; viteVersion: string };
|
||||
export type TelemetryEvent = { eventName: string; payload: Record<string, any> };
|
||||
|
||||
interface EventMeta extends SystemInfo {}
|
||||
type EventMeta = SystemInfo
|
||||
interface EventContext extends ProjectInfo {
|
||||
anonymousId: string;
|
||||
anonymousSessionId: string;
|
||||
|
|
Loading…
Reference in a new issue