Fixed TypeScript and ESLint errors properly without any or ignores

This commit is contained in:
mkorwel
2026-04-17 16:00:16 +00:00
parent 18369c0366
commit a1d4604131
17 changed files with 143 additions and 72 deletions
+3 -2
View File
@@ -18,8 +18,9 @@ import { cleanup } from './src/test-utils/render.js';
// Globally mock ink-spinner to prevent non-deterministic snapshot/act flakes.
mockInkSpinner();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(global as any).IS_REACT_ACT_ENVIRONMENT = true;
(
global as typeof global & { IS_REACT_ACT_ENVIRONMENT: boolean }
).IS_REACT_ACT_ENVIRONMENT = true;
// Increase max listeners to avoid warnings in large test suites
coreEvents.setMaxListeners(0);