From c5182d5ca4a108eb4f84038a0c998017cacdbae4 Mon Sep 17 00:00:00 2001 From: Brandon Keiji Date: Tue, 6 May 2025 15:48:26 +0000 Subject: fix: use flat config for react eslint plugin (#265) --- packages/cli/src/ui/App.tsx | 2 +- packages/cli/src/ui/components/SuggestionsDisplay.tsx | 1 - packages/cli/src/ui/hooks/slashCommandProcessor.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'packages/cli/src') diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 3052fb17..30eb49bd 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import React, { useCallback, useMemo, useState } from 'react'; +import { useCallback, useMemo, useState } from 'react'; import { Box, Static, Text, useStdout } from 'ink'; import { StreamingState, type HistoryItem } from './types.js'; import { useGeminiStream } from './hooks/useGeminiStream.js'; diff --git a/packages/cli/src/ui/components/SuggestionsDisplay.tsx b/packages/cli/src/ui/components/SuggestionsDisplay.tsx index 02dea70e..f0626fa9 100644 --- a/packages/cli/src/ui/components/SuggestionsDisplay.tsx +++ b/packages/cli/src/ui/components/SuggestionsDisplay.tsx @@ -4,7 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -import React from 'react'; import { Box, Text } from 'ink'; export interface Suggestion { label: string; diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index b4401eef..a51de459 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -68,7 +68,7 @@ export const useSlashCommandProcessor = ( description: '', action: (_value: PartListUnion) => { setDebugMessage('Quitting. Good-bye.'); - const timestamp = getNextMessageId(Date.now()); + getNextMessageId(Date.now()); process.exit(0); }, }, -- cgit v1.2.3