mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 14:28: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:
@@ -7,11 +7,16 @@ import {
|
||||
useMutation,
|
||||
useQuery,
|
||||
} from "@tanstack/react-query";
|
||||
import type { ScanResults, ScannersList } from "./interfaces";
|
||||
import { ScanResult } from "./interfaces";
|
||||
|
||||
import apiService from "./apiService";
|
||||
import {
|
||||
type ScanResult,
|
||||
type ScanResults,
|
||||
type ScannersList,
|
||||
} from "./interfaces";
|
||||
|
||||
// Get list of discovered scanners
|
||||
// @ts-expect-error unused
|
||||
function useGetDiscoveredScanners(options?: UseQueryOptions<ScannersList>) {
|
||||
return useQuery<ScannersList>({
|
||||
queryKey: ["scanners"],
|
||||
@@ -25,6 +30,7 @@ function useGetDiscoveredScanners(options?: UseQueryOptions<ScannersList>) {
|
||||
}
|
||||
|
||||
// Scan manifests using all applicable scanners
|
||||
// @ts-expect-error unused
|
||||
function useScanManifests(
|
||||
manifest: string,
|
||||
options?: UseMutationOptions<ScanResults, Error, string>
|
||||
@@ -46,6 +52,7 @@ function useScanManifests(
|
||||
}
|
||||
|
||||
// Scan specified k8s resource in cluster
|
||||
// @ts-expect-error unused
|
||||
function useScanK8sResource(
|
||||
kind: string,
|
||||
namespace: string,
|
||||
|
||||
Reference in New Issue
Block a user