revert lint

This commit is contained in:
Reece 2025-10-27 18:23:27 +00:00
parent 09b0fbefcd
commit f1901a2e56
2 changed files with 13 additions and 17 deletions

View File

@ -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,
},
},
);

View File

@ -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() {
</TourProvider>
</>
);
}
}