0
Fork 0
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:
Nate Moore 2022-07-07 15:37:12 -05:00
parent 515e876598
commit 465f204b27
5 changed files with 6 additions and 4 deletions

View file

@ -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);
} }

View file

@ -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';

View file

@ -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

View file

@ -1,3 +1,4 @@
/* eslint-disable no-console */
import type { AstroConfig, AstroIntegration } from 'astro'; import type { AstroConfig, AstroIntegration } from 'astro';
import { import {
EnumChangefreq, EnumChangefreq,

View file

@ -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;