From f1901a2e563997b3db8bd1ee0a4c595a6f546316 Mon Sep 17 00:00:00 2001 From: Reece Date: Mon, 27 Oct 2025 18:23:27 +0000 Subject: [PATCH] revert lint --- frontend/eslint.config.mjs | 16 ++++------------ .../src/components/onboarding/OnboardingTour.tsx | 14 +++++++++----- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs index 87b79c10d..fa2e43863 100644 --- a/frontend/eslint.config.mjs +++ b/frontend/eslint.config.mjs @@ -77,13 +77,12 @@ export default defineConfig( } } }, - // Config for import plugin (rules only; do not override parser) + // Config for import plugin { - plugins: { - import: importPlugin, - }, + ...importPlugin.flatConfigs.recommended, + ...importPlugin.flatConfigs.typescript, rules: { - // Include TypeScript-aware import rules; omit base recommended to reduce churn + // ...importPlugin.flatConfigs.recommended.rules, // Temporarily disabled until codebase conformant ...importPlugin.flatConfigs.typescript.rules, 'import/no-cycle': 'error', }, @@ -95,11 +94,4 @@ export default defineConfig( }, }, }, - // Ensure TS parser for TS/TSX files (in case later configs override parser) - { - files: ['**/*.{ts,tsx}'], - languageOptions: { - parser: tseslint.parser, - }, - }, ); diff --git a/frontend/src/components/onboarding/OnboardingTour.tsx b/frontend/src/components/onboarding/OnboardingTour.tsx index 096013e25..1d90ee36f 100644 --- a/frontend/src/components/onboarding/OnboardingTour.tsx +++ b/frontend/src/components/onboarding/OnboardingTour.tsx @@ -1,5 +1,9 @@ import React from "react"; -import { TourProvider, useTour, type StepType } from '@reactour/tour'; +import { + TourProvider, + useTour, + type StepType +} from '@reactour/tour'; import { useOnboarding } from '../../contexts/OnboardingContext'; import { useTranslation } from 'react-i18next'; import { CloseButton, ActionIcon } from '@mantine/core'; @@ -250,14 +254,14 @@ export default function OnboardingTour() { e.stopPropagation(); advanceTour(clickProps); }} - keyboardHandler={(e, clickProps, status) => { + keyboardHandler={(e, clickProps) => { // Handle right arrow key to advance tour - if (e.key === 'ArrowRight' && !status?.isRightDisabled && clickProps) { + if (e.key === 'ArrowRight' && clickProps) { e.preventDefault(); advanceTour(clickProps); } // Handle escape key to close tour - else if (e.key === 'Escape' && !status?.isEscDisabled && clickProps) { + else if (e.key === 'Escape' && clickProps) { e.preventDefault(); handleCloseTour(clickProps); } @@ -328,4 +332,4 @@ export default function OnboardingTour() { ); -} \ No newline at end of file +}