From 7cfde71b79e1f1386be7f99bee28083ae8893ae0 Mon Sep 17 00:00:00 2001 From: Dhairya Majmudar <2022kuec2045@iiitkota.ac.in> Date: Tue, 18 Feb 2025 12:01:43 +0530 Subject: [PATCH] plugins: tsconfig: add strictNullChecks Signed-off-by: Dhairya Majmudar <2022kuec2045@iiitkota.ac.in> --- frontend/src/lib/k8s/api/v2/useKubeObjectList.test.tsx | 1 - frontend/src/redux/overviewChartsSlice.ts | 4 ++-- plugins/headlamp-plugin/tsconfig.json | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/k8s/api/v2/useKubeObjectList.test.tsx b/frontend/src/lib/k8s/api/v2/useKubeObjectList.test.tsx index 68150027f0..2fcd7c4f7e 100644 --- a/frontend/src/lib/k8s/api/v2/useKubeObjectList.test.tsx +++ b/frontend/src/lib/k8s/api/v2/useKubeObjectList.test.tsx @@ -1,6 +1,5 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { renderHook } from '@testing-library/react'; -import { describe, expect, it, vi } from 'vitest'; import { kubeObjectListQuery, ListResponse, diff --git a/frontend/src/redux/overviewChartsSlice.ts b/frontend/src/redux/overviewChartsSlice.ts index a6538bf056..e60e735ea0 100644 --- a/frontend/src/redux/overviewChartsSlice.ts +++ b/frontend/src/redux/overviewChartsSlice.ts @@ -11,11 +11,11 @@ export interface OverviewChartsProcessor { processor: (charts: OverviewChart[]) => OverviewChart[]; } -interface OverviewChartsState { +export interface OverviewChartsState { processors: OverviewChartsProcessor[]; } -const initialState: OverviewChartsState = { +export const initialState: OverviewChartsState = { processors: [], }; diff --git a/plugins/headlamp-plugin/tsconfig.json b/plugins/headlamp-plugin/tsconfig.json index 2b5b9208ff..14e7d5710b 100644 --- a/plugins/headlamp-plugin/tsconfig.json +++ b/plugins/headlamp-plugin/tsconfig.json @@ -10,6 +10,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strict": true, + "strictNullChecks": true, "forceConsistentCasingInFileNames": true, "module": "esnext", "moduleResolution": "node",