mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 06:18:04 +00:00
Introduced tsconfig.app.json and tsconfig.base.json + Refactored eslint.config.js to the latest structure (#652)
* Introduced tsconfig.app.json and tsconfig.base.json * yarn.lock * Introduced tsconfig.app.json, tsconfig.base.jsonfig. * Refactored eslint.config.js to latest structure * Returned previous recommended rules. * More rules * Force import rules * Check * Check * Cleanup ESLint configuration and plugins * Cleanup heap: "writable",DD_RUM: "writable" from ESLint configuration * "scripts" moved to the top of package.json
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
import { type UseQueryOptions, useQuery } from "@tanstack/react-query";
|
||||
|
||||
import apiService from "./apiService";
|
||||
import type {
|
||||
K8sResource,
|
||||
K8sResourceList,
|
||||
KubectlContexts,
|
||||
} from "./interfaces";
|
||||
import apiService from "./apiService";
|
||||
|
||||
// Get list of kubectl contexts configured locally
|
||||
// @ts-expect-error unused
|
||||
function useGetKubectlContexts(options?: UseQueryOptions<KubectlContexts>) {
|
||||
return useQuery<KubectlContexts>({
|
||||
queryKey: ["k8s", "contexts"],
|
||||
@@ -21,6 +23,7 @@ function useGetKubectlContexts(options?: UseQueryOptions<KubectlContexts>) {
|
||||
}
|
||||
|
||||
// Get resources information
|
||||
// @ts-expect-error unused
|
||||
function useGetK8sResource(
|
||||
kind: string,
|
||||
name: string,
|
||||
@@ -39,6 +42,7 @@ function useGetK8sResource(
|
||||
}
|
||||
|
||||
// Get list of resources
|
||||
// @ts-expect-error unused
|
||||
function useGetK8sResourceList(
|
||||
kind: string,
|
||||
options?: UseQueryOptions<K8sResourceList>
|
||||
@@ -55,6 +59,7 @@ function useGetK8sResourceList(
|
||||
}
|
||||
|
||||
// Get describe text for kubernetes resource
|
||||
// @ts-expect-error unused
|
||||
function useGetK8sResourceDescribe(
|
||||
kind: string,
|
||||
name: string,
|
||||
|
||||
Reference in New Issue
Block a user