From edb4ed636839cbb107be3749206a329f4dfc66f6 Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 7 Jan 2025 13:13:55 +0000 Subject: [PATCH] Fix linting issues: Fix import order and add newlines at end of files --- frontend/__tests__/i18n/duplicate-keys.test.ts | 2 +- frontend/__tests__/i18n/translations.test.tsx | 2 +- frontend/src/components/features/chat/chat-suggestions.tsx | 2 +- frontend/src/i18n/translation.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/__tests__/i18n/duplicate-keys.test.ts b/frontend/__tests__/i18n/duplicate-keys.test.ts index 614d94742a6e..35ab9b89c971 100644 --- a/frontend/__tests__/i18n/duplicate-keys.test.ts +++ b/frontend/__tests__/i18n/duplicate-keys.test.ts @@ -73,4 +73,4 @@ describe('translation.json', () => { // Expect no inconsistencies expect(inconsistentKeys).toHaveLength(0); }); -}); \ No newline at end of file +}); diff --git a/frontend/__tests__/i18n/translations.test.tsx b/frontend/__tests__/i18n/translations.test.tsx index 86c90a23bf7e..c91a2721b70e 100644 --- a/frontend/__tests__/i18n/translations.test.tsx +++ b/frontend/__tests__/i18n/translations.test.tsx @@ -58,4 +58,4 @@ describe('Translations', () => { expect(missingTranslations).toHaveLength(0); }); }); -}); \ No newline at end of file +}); diff --git a/frontend/src/components/features/chat/chat-suggestions.tsx b/frontend/src/components/features/chat/chat-suggestions.tsx index b4d13609174f..90d2797f99f0 100644 --- a/frontend/src/components/features/chat/chat-suggestions.tsx +++ b/frontend/src/components/features/chat/chat-suggestions.tsx @@ -1,7 +1,7 @@ +import { useTranslation } from "react-i18next"; import { Suggestions } from "#/components/features/suggestions/suggestions"; import { I18nKey } from "#/i18n/declaration"; import BuildIt from "#/icons/build-it.svg?react"; -import { useTranslation } from "react-i18next"; import { SUGGESTIONS } from "#/utils/suggestions"; interface ChatSuggestionsProps { diff --git a/frontend/src/i18n/translation.json b/frontend/src/i18n/translation.json index 0b2bdb13a653..b10f75530f2f 100644 --- a/frontend/src/i18n/translation.json +++ b/frontend/src/i18n/translation.json @@ -4424,4 +4424,4 @@ "tr": "Ne inşa etmek istiyorsun?", "de": "Was möchten Sie erstellen?" } -} \ No newline at end of file +}