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 +- packages/cli/tsconfig.json | 2 +- packages/server/src/core/prompts.ts | 1 - 5 files changed, 3 insertions(+), 5 deletions(-) (limited to 'packages') 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); }, }, diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 490ad209..7c7539e3 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "dist", - "jsx": "react", + "jsx": "react-jsx", "lib": ["DOM", "DOM.Iterable", "ES2020"], "paths": { "@gemini-code/*": ["./packages/*"] diff --git a/packages/server/src/core/prompts.ts b/packages/server/src/core/prompts.ts index aae11330..3406f146 100644 --- a/packages/server/src/core/prompts.ts +++ b/packages/server/src/core/prompts.ts @@ -11,7 +11,6 @@ import { GrepTool } from '../tools/grep.js'; import { ReadFileTool } from '../tools/read-file.js'; import { ReadManyFilesTool } from '../tools/read-many-files.js'; import { ShellTool } from '../tools/shell.js'; -import { WebFetchTool } from '../tools/web-fetch.js'; import { WriteFileTool } from '../tools/write-file.js'; const contactEmail = 'gemini-code-dev@google.com'; -- cgit v1.2.3