cleanup Lens repo with tighter linting

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian Malton committed 2020-07-09 17:00:23 -04:00
1 parent e468105143
commit b1ff34879a
470 files changed
+8447 -7443

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
export interface IClusterInfo {
export interface BaseClusterInfo {
kubeVersion?: string;
clusterName?: string;
}
+2 -2
View File
@@ -1,5 +1,5 @@
import { IClusterInfo } from "../common/cluster";
export interface IConfig extends Partial<IClusterInfo> {
import { BaseClusterInfo } from "../common/cluster";
export interface CommonConfig extends Partial<BaseClusterInfo> {
lensVersion?: string;
lensTheme?: string;
username?: string;
+3 -3
View File
@@ -1,14 +1,14 @@
export interface IKubeWatchEvent<T = any> {
export interface KubeWatchEvent<T = any> {
type: "ADDED" | "MODIFIED" | "DELETED";
object?: T;
}
export interface IKubeWatchRouteEvent {
export interface KubeWatchRouteEvent {
type: "STREAM_END";
url: string;
status: number;
}
export interface IKubeWatchRouteQuery {
export interface KubeWatchRouteQuery {
api: string | string[];
}
+3 -3
View File
@@ -55,9 +55,9 @@ export const config = {
KUBERNETES_CLIENT_KEY: process.env.KUBERNETES_CLIENT_KEY || "",
KUBERNETES_TLS_SKIP: JSON.parse(process.env.KUBERNETES_TLS_SKIP || "false"),
KUBERNETES_NAMESPACE: process.env.KUBERNETES_NAMESPACE || "", // default allowed namespace
}
};
export function isSecure() {
export function isSecure(): boolean {
return IS_PRODUCTION ? !config.KUBERNETES_TLS_SKIP : false;
}
@@ -69,6 +69,6 @@ export const clientVars = {
IS_PRODUCTION: config.IS_PRODUCTION,
API_PREFIX: config.API_PREFIX,
LOCAL_SERVER_PORT: config.LOCAL_SERVER_PORT,
}
};
export type IClientVars = typeof clientVars;