chore(lint): fix lint errors seen when running npm run lint (#19844)

This commit is contained in:
Abhi
2026-02-21 13:33:25 -05:00
committed by GitHub
parent d2d345f41a
commit acb7f577de
40 changed files with 109 additions and 117 deletions
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
import 'vitest';
import {
vi,
describe,
+1 -2
View File
@@ -9,9 +9,8 @@ import { TraceExporter } from '@google-cloud/opentelemetry-cloud-trace-exporter'
import { MetricExporter } from '@google-cloud/opentelemetry-cloud-monitoring-exporter';
import { Logging } from '@google-cloud/logging';
import type { Log } from '@google-cloud/logging';
import { hrTimeToMilliseconds } from '@opentelemetry/core';
import { hrTimeToMilliseconds, ExportResultCode } from '@opentelemetry/core';
import type { ExportResult } from '@opentelemetry/core';
import { ExportResultCode } from '@opentelemetry/core';
import type {
ReadableLogRecord,
LogRecordExporter,
+2 -3
View File
@@ -10,6 +10,7 @@ import type {
CompletedToolCall,
ContentGeneratorConfig,
ErroredToolCall,
MessageBus,
} from '../index.js';
import {
CoreToolCallStatus,
@@ -19,11 +20,10 @@ import {
ToolConfirmationOutcome,
ToolErrorType,
ToolRegistry,
type MessageBus,
} from '../index.js';
import { OutputFormat } from '../output/types.js';
import { logs } from '@opentelemetry/api-logs';
import type { Config } from '../config/config.js';
import type { Config, GeminiCLIExtension } from '../config/config.js';
import {
logApiError,
logApiRequest,
@@ -100,7 +100,6 @@ import { FileOperation } from './metrics.js';
import * as sdk from './sdk.js';
import { createMockMessageBus } from '../test-utils/mock-message-bus.js';
import { vi, describe, beforeEach, it, expect, afterEach } from 'vitest';
import { type GeminiCLIExtension } from '../config/config.js';
import {
FinishReason,
type CallableTool,
@@ -8,8 +8,8 @@ import { describe, it, expect, vi, beforeEach } from 'vitest';
import { UiTelemetryService } from './uiTelemetry.js';
import { ToolCallDecision } from './tool-call-decision.js';
import type { ApiErrorEvent, ApiResponseEvent } from './types.js';
import { ToolCallEvent } from './types.js';
import {
ToolCallEvent,
EVENT_API_ERROR,
EVENT_API_RESPONSE,
EVENT_TOOL_CALL,
+1 -2
View File
@@ -16,10 +16,9 @@ import type {
ApiErrorEvent,
ApiResponseEvent,
ToolCallEvent,
LlmRole,
} from './types.js';
import type { LlmRole } from './types.js';
export type UiEvent =
| (ApiResponseEvent & { 'event.name': typeof EVENT_API_RESPONSE })
| (ApiErrorEvent & { 'event.name': typeof EVENT_API_ERROR })