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);
|
setTimeout(exitWithErrorMessage, 400);
|
||||||
// Wait for the telemetry event to send, then exit. Ignore any error.
|
// Wait for the telemetry event to send, then exit. Ignore any error.
|
||||||
await telemetryPromise
|
await telemetryPromise
|
||||||
.catch((err) => debug('telemetry', `record() error: ${err.message}`))
|
.catch((e) => debug('telemetry', `record() error: ${e.message}`))
|
||||||
.then(exitWithErrorMessage);
|
.then(exitWithErrorMessage);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable no-console */
|
||||||
import type { AstroConfig, AstroIntegration } from 'astro';
|
import type { AstroConfig, AstroIntegration } from 'astro';
|
||||||
import fs from 'fs/promises';
|
import fs from 'fs/promises';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
|
@ -31,8 +31,8 @@ export function createPlugin(config: AstroConfig, options: Required<IntegrationO
|
||||||
return {
|
return {
|
||||||
name: '@astrojs/image',
|
name: '@astrojs/image',
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
configResolved(config) {
|
configResolved(_config) {
|
||||||
resolvedConfig = config;
|
resolvedConfig = _config;
|
||||||
},
|
},
|
||||||
async resolveId(id) {
|
async resolveId(id) {
|
||||||
// The virtual model redirects imports to the ImageService being used
|
// 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 type { AstroConfig, AstroIntegration } from 'astro';
|
||||||
import {
|
import {
|
||||||
EnumChangefreq,
|
EnumChangefreq,
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { getSystemInfo, SystemInfo } from './system-info.js';
|
||||||
export type AstroTelemetryOptions = { astroVersion: string; viteVersion: string };
|
export type AstroTelemetryOptions = { astroVersion: string; viteVersion: string };
|
||||||
export type TelemetryEvent = { eventName: string; payload: Record<string, any> };
|
export type TelemetryEvent = { eventName: string; payload: Record<string, any> };
|
||||||
|
|
||||||
interface EventMeta extends SystemInfo {}
|
type EventMeta = SystemInfo
|
||||||
interface EventContext extends ProjectInfo {
|
interface EventContext extends ProjectInfo {
|
||||||
anonymousId: string;
|
anonymousId: string;
|
||||||
anonymousSessionId: string;
|
anonymousSessionId: string;
|
||||||
|
|
Loading…
Reference in a new issue