Enable object-shorthand rule (#1500)

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti authored and GitHub committed 2020-11-24 13:16:35 +02:00
1 parent 2a8cfe5e67
commit ff93760dc4
42 files changed
+69 -66

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ export class ClusterApi extends KubeApi<Cluster> {
async getMetrics(nodeNames: string[], params?: IMetricsReqParams): Promise<IClusterMetrics> {
const nodes = nodeNames.join("|");
const opts = { category: "cluster", nodes: nodes };
const opts = { category: "cluster", nodes };
return metricsApi.getMetrics({
memoryUsage: opts,
+1 -1
View File
@@ -20,7 +20,7 @@ export class DeploymentApi extends KubeApi<Deployment> {
data: {
metadata: params,
spec: {
replicas: replicas
replicas
}
}
});
@@ -119,7 +119,7 @@ export const helmReleasesApi = {
const path = endpoint({ name, namespace }) + "/rollback";
return apiBase.put(path, {
data: {
revision: revision
revision
}
});
}