mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Lint: comma-spacing (error) & comma-dangle (error) (#4200)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
02e77afcd1
commit
c6dce043a7
406 files changed
+1590
-1580
No files matched your search
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const addClusterRoute: RouteProps = {
|
||||
path: "/add-cluster"
|
||||
path: "/add-cluster",
|
||||
};
|
||||
|
||||
export const addClusterURL = buildURL(addClusterRoute.path);
|
||||
@@ -27,7 +27,7 @@ export interface CatalogViewRouteParam {
|
||||
kind?: string;
|
||||
}
|
||||
export const catalogRoute: RouteProps = {
|
||||
path: "/catalog/:group?/:kind?"
|
||||
path: "/catalog/:group?/:kind?",
|
||||
};
|
||||
|
||||
export const getPreviousTabUrl = (path: string) => {
|
||||
@@ -36,8 +36,8 @@ export const getPreviousTabUrl = (path: string) => {
|
||||
return catalogURL({
|
||||
params: {
|
||||
group: group || browseCatalogTab,
|
||||
kind
|
||||
}
|
||||
kind,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const clusterRoute: RouteProps = {
|
||||
path: "/overview"
|
||||
path: "/overview",
|
||||
};
|
||||
|
||||
export const clusterURL = buildURL(clusterRoute.path);
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const configMapsRoute: RouteProps = {
|
||||
path: "/configmaps"
|
||||
path: "/configmaps",
|
||||
};
|
||||
|
||||
export interface ConfigMapsRouteParams {
|
||||
|
||||
@@ -35,8 +35,8 @@ export const configRoute: RouteProps = {
|
||||
resourceQuotaRoute,
|
||||
limitRangesRoute,
|
||||
hpaRoute,
|
||||
pdbRoute
|
||||
].map(route => route.path.toString())
|
||||
pdbRoute,
|
||||
].map(route => route.path.toString()),
|
||||
};
|
||||
|
||||
export const configURL = (params?: URLParams) => configMapsURL(params);
|
||||
@@ -23,15 +23,15 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const crdRoute: RouteProps = {
|
||||
path: "/crd"
|
||||
path: "/crd",
|
||||
};
|
||||
|
||||
export const crdDefinitionsRoute: RouteProps = {
|
||||
path: `${crdRoute.path}/definitions`
|
||||
path: `${crdRoute.path}/definitions`,
|
||||
};
|
||||
|
||||
export const crdResourcesRoute: RouteProps = {
|
||||
path: `${crdRoute.path}/:group/:name`
|
||||
path: `${crdRoute.path}/:group/:name`,
|
||||
};
|
||||
|
||||
export interface CRDListQuery {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const endpointRoute: RouteProps = {
|
||||
path: "/endpoints"
|
||||
path: "/endpoints",
|
||||
};
|
||||
|
||||
export interface EndpointRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const eventRoute: RouteProps = {
|
||||
path: "/events"
|
||||
path: "/events",
|
||||
};
|
||||
|
||||
export const eventsURL = buildURL(eventRoute.path);
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const extensionsRoute: RouteProps = {
|
||||
path: "/extensions"
|
||||
path: "/extensions",
|
||||
};
|
||||
|
||||
export const extensionsURL = buildURL(extensionsRoute.path);
|
||||
@@ -24,7 +24,7 @@ import { buildURL } from "../utils/buildUrl";
|
||||
import { appsRoute } from "./apps";
|
||||
|
||||
export const helmChartsRoute: RouteProps = {
|
||||
path: `${appsRoute.path}/charts/:repo?/:chartName?`
|
||||
path: `${appsRoute.path}/charts/:repo?/:chartName?`,
|
||||
};
|
||||
|
||||
export interface HelmChartsRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const hpaRoute: RouteProps = {
|
||||
path: "/hpa"
|
||||
path: "/hpa",
|
||||
};
|
||||
|
||||
export interface HpaRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const ingressRoute: RouteProps = {
|
||||
path: "/ingresses"
|
||||
path: "/ingresses",
|
||||
};
|
||||
|
||||
export interface IngressRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const limitRangesRoute: RouteProps = {
|
||||
path: "/limitranges"
|
||||
path: "/limitranges",
|
||||
};
|
||||
|
||||
export interface LimitRangeRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const namespacesRoute: RouteProps = {
|
||||
path: "/namespaces"
|
||||
path: "/namespaces",
|
||||
};
|
||||
|
||||
export interface NamespacesRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const networkPoliciesRoute: RouteProps = {
|
||||
path: "/network-policies"
|
||||
path: "/network-policies",
|
||||
};
|
||||
|
||||
export interface NetworkPoliciesRouteParams {
|
||||
|
||||
@@ -34,7 +34,7 @@ export const networkRoute: RouteProps = {
|
||||
ingressRoute,
|
||||
networkPoliciesRoute,
|
||||
portForwardsRoute,
|
||||
].map(route => route.path.toString())
|
||||
].map(route => route.path.toString()),
|
||||
};
|
||||
|
||||
export const networkURL = (params?: URLParams) => servicesURL(params);
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const nodesRoute: RouteProps = {
|
||||
path: "/nodes"
|
||||
path: "/nodes",
|
||||
};
|
||||
|
||||
export interface NodesRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const pdbRoute: RouteProps = {
|
||||
path: "/poddisruptionbudgets"
|
||||
path: "/poddisruptionbudgets",
|
||||
};
|
||||
|
||||
export interface PodDisruptionBudgetsRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const portForwardsRoute: RouteProps = {
|
||||
path: "/port-forwards/:forwardport?"
|
||||
path: "/port-forwards/:forwardport?",
|
||||
};
|
||||
|
||||
export interface PortForwardsRouteParams {
|
||||
|
||||
@@ -23,31 +23,31 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const preferencesRoute: RouteProps = {
|
||||
path: "/preferences"
|
||||
path: "/preferences",
|
||||
};
|
||||
|
||||
export const appRoute: RouteProps = {
|
||||
path: `${preferencesRoute.path}/app`
|
||||
path: `${preferencesRoute.path}/app`,
|
||||
};
|
||||
|
||||
export const proxyRoute: RouteProps = {
|
||||
path: `${preferencesRoute.path}/proxy`
|
||||
path: `${preferencesRoute.path}/proxy`,
|
||||
};
|
||||
|
||||
export const kubernetesRoute: RouteProps = {
|
||||
path: `${preferencesRoute.path}/kubernetes`
|
||||
path: `${preferencesRoute.path}/kubernetes`,
|
||||
};
|
||||
|
||||
export const editorRoute: RouteProps = {
|
||||
path: `${preferencesRoute.path}/editor`
|
||||
path: `${preferencesRoute.path}/editor`,
|
||||
};
|
||||
|
||||
export const telemetryRoute: RouteProps = {
|
||||
path: `${preferencesRoute.path}/telemetry`
|
||||
path: `${preferencesRoute.path}/telemetry`,
|
||||
};
|
||||
|
||||
export const extensionRoute: RouteProps = {
|
||||
path: `${preferencesRoute.path}/extensions`
|
||||
path: `${preferencesRoute.path}/extensions`,
|
||||
};
|
||||
|
||||
export const preferencesURL = buildURL(preferencesRoute.path);
|
||||
|
||||
@@ -24,7 +24,7 @@ import { buildURL } from "../utils/buildUrl";
|
||||
import { appsRoute } from "./apps";
|
||||
|
||||
export const releaseRoute: RouteProps = {
|
||||
path: `${appsRoute.path}/releases/:namespace?/:name?`
|
||||
path: `${appsRoute.path}/releases/:namespace?/:name?`,
|
||||
};
|
||||
|
||||
export interface ReleaseRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const resourceQuotaRoute: RouteProps = {
|
||||
path: "/resourcequotas"
|
||||
path: "/resourcequotas",
|
||||
};
|
||||
|
||||
export interface ResourceQuotaRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const secretsRoute: RouteProps = {
|
||||
path: "/secrets"
|
||||
path: "/secrets",
|
||||
};
|
||||
|
||||
export interface SecretsRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const servicesRoute: RouteProps = {
|
||||
path: "/services"
|
||||
path: "/services",
|
||||
};
|
||||
|
||||
export interface ServicesRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const storageClassesRoute: RouteProps = {
|
||||
path: "/storage-classes"
|
||||
path: "/storage-classes",
|
||||
};
|
||||
|
||||
export interface StorageClassesRouteParams {
|
||||
|
||||
@@ -29,8 +29,8 @@ export const storageRoute: RouteProps = {
|
||||
path: [
|
||||
volumeClaimsRoute,
|
||||
volumesRoute,
|
||||
storageClassesRoute
|
||||
].map(route => route.path.toString())
|
||||
storageClassesRoute,
|
||||
].map(route => route.path.toString()),
|
||||
};
|
||||
|
||||
export const storageURL = (params?: URLParams) => volumeClaimsURL(params);
|
||||
@@ -24,22 +24,22 @@ import { buildURL, URLParams } from "../utils/buildUrl";
|
||||
|
||||
// Routes
|
||||
export const serviceAccountsRoute: RouteProps = {
|
||||
path: "/service-accounts"
|
||||
path: "/service-accounts",
|
||||
};
|
||||
export const podSecurityPoliciesRoute: RouteProps = {
|
||||
path: "/pod-security-policies"
|
||||
path: "/pod-security-policies",
|
||||
};
|
||||
export const rolesRoute: RouteProps = {
|
||||
path: "/roles"
|
||||
path: "/roles",
|
||||
};
|
||||
export const clusterRolesRoute: RouteProps = {
|
||||
path: "/cluster-roles"
|
||||
path: "/cluster-roles",
|
||||
};
|
||||
export const roleBindingsRoute: RouteProps = {
|
||||
path: "/role-bindings"
|
||||
path: "/role-bindings",
|
||||
};
|
||||
export const clusterRoleBindingsRoute: RouteProps = {
|
||||
path: "/cluster-role-bindings"
|
||||
path: "/cluster-role-bindings",
|
||||
};
|
||||
|
||||
export const usersManagementRoute: RouteProps = {
|
||||
@@ -50,7 +50,7 @@ export const usersManagementRoute: RouteProps = {
|
||||
clusterRoleBindingsRoute,
|
||||
rolesRoute,
|
||||
clusterRolesRoute,
|
||||
].map(route => route.path.toString())
|
||||
].map(route => route.path.toString()),
|
||||
};
|
||||
|
||||
// Route params
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const volumeClaimsRoute: RouteProps = {
|
||||
path: "/persistent-volume-claims"
|
||||
path: "/persistent-volume-claims",
|
||||
};
|
||||
|
||||
export interface VolumeClaimsRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const volumesRoute: RouteProps = {
|
||||
path: "/persistent-volumes"
|
||||
path: "/persistent-volumes",
|
||||
};
|
||||
|
||||
export interface VolumesRouteParams {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { RouteProps } from "react-router";
|
||||
import { buildURL } from "../utils/buildUrl";
|
||||
|
||||
export const welcomeRoute: RouteProps = {
|
||||
path: "/welcome"
|
||||
path: "/welcome",
|
||||
};
|
||||
|
||||
export const welcomeURL = buildURL(welcomeRoute.path);
|
||||
@@ -25,28 +25,28 @@ import type { KubeResource } from "../rbac";
|
||||
|
||||
// Routes
|
||||
export const overviewRoute: RouteProps = {
|
||||
path: "/workloads"
|
||||
path: "/workloads",
|
||||
};
|
||||
export const podsRoute: RouteProps = {
|
||||
path: "/pods"
|
||||
path: "/pods",
|
||||
};
|
||||
export const deploymentsRoute: RouteProps = {
|
||||
path: "/deployments"
|
||||
path: "/deployments",
|
||||
};
|
||||
export const daemonSetsRoute: RouteProps = {
|
||||
path: "/daemonsets"
|
||||
path: "/daemonsets",
|
||||
};
|
||||
export const statefulSetsRoute: RouteProps = {
|
||||
path: "/statefulsets"
|
||||
path: "/statefulsets",
|
||||
};
|
||||
export const replicaSetsRoute: RouteProps = {
|
||||
path: "/replicasets"
|
||||
path: "/replicasets",
|
||||
};
|
||||
export const jobsRoute: RouteProps = {
|
||||
path: "/jobs"
|
||||
path: "/jobs",
|
||||
};
|
||||
export const cronJobsRoute: RouteProps = {
|
||||
path: "/cronjobs"
|
||||
path: "/cronjobs",
|
||||
};
|
||||
|
||||
export const workloadsRoute: RouteProps = {
|
||||
@@ -58,8 +58,8 @@ export const workloadsRoute: RouteProps = {
|
||||
statefulSetsRoute,
|
||||
replicaSetsRoute,
|
||||
jobsRoute,
|
||||
cronJobsRoute
|
||||
].map(route => route.path.toString())
|
||||
cronJobsRoute,
|
||||
].map(route => route.path.toString()),
|
||||
};
|
||||
|
||||
// Route params
|
||||
|
||||
Reference in new issue
Block a user