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
@@ -36,13 +36,13 @@ const spec = {
|
||||
terminationGracePeriodSeconds: 1,
|
||||
dnsPolicy: "no",
|
||||
hostPID: true,
|
||||
schedulerName: "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
schedulerName: "string",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
successfulJobsHistoryLimit: 1,
|
||||
failedJobsHistoryLimit: 1
|
||||
failedJobsHistoryLimit: 1,
|
||||
};
|
||||
|
||||
const scheduledCronJob = new CronJob({
|
||||
@@ -64,7 +64,7 @@ const suspendedCronJob = new CronJob({
|
||||
resourceVersion: "suspendedCronJob",
|
||||
uid: "suspendedCronJob",
|
||||
namespace: "default",
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
const otherSuspendedCronJob = new CronJob({
|
||||
@@ -88,7 +88,7 @@ describe("CronJob Store tests", () => {
|
||||
const statuses = Object.entries(cronJobStore.getStatuses([
|
||||
suspendedCronJob,
|
||||
otherSuspendedCronJob,
|
||||
scheduledCronJob
|
||||
scheduledCronJob,
|
||||
]));
|
||||
|
||||
expect(statuses).toEqual([
|
||||
|
||||
@@ -67,7 +67,7 @@ const runningPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "runningDaemonSet",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -85,7 +85,7 @@ runningPod.status = {
|
||||
status: "True",
|
||||
lastProbeTime: 1,
|
||||
lastTransitionTime: "1",
|
||||
}
|
||||
},
|
||||
],
|
||||
hostIP: "10.0.0.1",
|
||||
podIP: "10.0.0.1",
|
||||
@@ -104,7 +104,7 @@ const pendingPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "pendingDaemonSet",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -118,7 +118,7 @@ const failedPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "failedDaemonSet",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -135,7 +135,7 @@ describe("DaemonSet Store tests", () => {
|
||||
podsStore.items = observable.array([
|
||||
runningPod,
|
||||
failedPod,
|
||||
pendingPod
|
||||
pendingPod,
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -143,7 +143,7 @@ describe("DaemonSet Store tests", () => {
|
||||
const statuses = Object.entries(daemonSetStore.getStatuses([
|
||||
failedDaemonSet,
|
||||
runningDaemonSet,
|
||||
pendingDaemonSet
|
||||
pendingDaemonSet,
|
||||
]));
|
||||
|
||||
expect(statuses).toEqual([
|
||||
|
||||
@@ -31,7 +31,7 @@ const spec = {
|
||||
resources: {
|
||||
requests: {
|
||||
cpu: "2",
|
||||
memory: "2Gi"
|
||||
memory: "2Gi",
|
||||
},
|
||||
},
|
||||
terminationMessagePath: "test",
|
||||
@@ -44,7 +44,7 @@ const spec = {
|
||||
serviceAccountName: "test",
|
||||
serviceAccount: "test",
|
||||
securityContext: {},
|
||||
schedulerName: "test"
|
||||
schedulerName: "test",
|
||||
};
|
||||
|
||||
const runningDeployment = new Deployment({
|
||||
@@ -65,17 +65,17 @@ runningDeployment.spec = {
|
||||
type: "test",
|
||||
rollingUpdate: {
|
||||
maxSurge: 1,
|
||||
maxUnavailable: 1
|
||||
}
|
||||
maxUnavailable: 1,
|
||||
},
|
||||
},
|
||||
template: {
|
||||
metadata: {
|
||||
labels: {
|
||||
"name": "kube-state-metrics"
|
||||
}
|
||||
"name": "kube-state-metrics",
|
||||
},
|
||||
},
|
||||
spec
|
||||
}
|
||||
spec,
|
||||
},
|
||||
};
|
||||
|
||||
const failedDeployment = new Deployment({
|
||||
@@ -96,17 +96,17 @@ failedDeployment.spec = {
|
||||
type: "test",
|
||||
rollingUpdate: {
|
||||
maxSurge: 1,
|
||||
maxUnavailable: 1
|
||||
}
|
||||
maxUnavailable: 1,
|
||||
},
|
||||
},
|
||||
template: {
|
||||
metadata: {
|
||||
labels: {
|
||||
"name": "failedpods"
|
||||
}
|
||||
"name": "failedpods",
|
||||
},
|
||||
},
|
||||
spec
|
||||
}
|
||||
spec,
|
||||
},
|
||||
};
|
||||
|
||||
const pendingDeployment = new Deployment({
|
||||
@@ -127,17 +127,17 @@ pendingDeployment.spec = {
|
||||
type: "test",
|
||||
rollingUpdate: {
|
||||
maxSurge: 1,
|
||||
maxUnavailable: 1
|
||||
}
|
||||
maxUnavailable: 1,
|
||||
},
|
||||
},
|
||||
template: {
|
||||
metadata: {
|
||||
labels: {
|
||||
"mydeployment": "true"
|
||||
}
|
||||
"mydeployment": "true",
|
||||
},
|
||||
},
|
||||
spec
|
||||
}
|
||||
spec,
|
||||
},
|
||||
};
|
||||
|
||||
const runningPod = new Pod({
|
||||
@@ -148,9 +148,9 @@ const runningPod = new Pod({
|
||||
resourceVersion: "foobar",
|
||||
uid: "foobar",
|
||||
labels: {
|
||||
"name": "kube-state-metrics"
|
||||
"name": "kube-state-metrics",
|
||||
},
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -168,7 +168,7 @@ runningPod.status = {
|
||||
status: "True",
|
||||
lastProbeTime: 1,
|
||||
lastTransitionTime: "1",
|
||||
}
|
||||
},
|
||||
],
|
||||
hostIP: "10.0.0.1",
|
||||
podIP: "10.0.0.1",
|
||||
@@ -185,9 +185,9 @@ const pendingPod = new Pod({
|
||||
resourceVersion: "foobar",
|
||||
uid: "foobar-pending",
|
||||
labels: {
|
||||
"mydeployment": "true"
|
||||
"mydeployment": "true",
|
||||
},
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -199,9 +199,9 @@ const failedPod = new Pod({
|
||||
resourceVersion: "foobar",
|
||||
uid: "foobar-failed",
|
||||
labels: {
|
||||
"name": "failedpods"
|
||||
"name": "failedpods",
|
||||
},
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -219,7 +219,7 @@ describe("Deployment Store tests", () => {
|
||||
podsStore.items = observable.array([
|
||||
runningPod,
|
||||
failedPod,
|
||||
pendingPod
|
||||
pendingPod,
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -227,7 +227,7 @@ describe("Deployment Store tests", () => {
|
||||
const statuses = Object.entries(deploymentStore.getStatuses([
|
||||
failedDeployment,
|
||||
runningDeployment,
|
||||
pendingDeployment
|
||||
pendingDeployment,
|
||||
]));
|
||||
|
||||
expect(statuses).toEqual([
|
||||
|
||||
@@ -78,7 +78,7 @@ const runningPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "runningJob",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -96,7 +96,7 @@ runningPod.status = {
|
||||
status: "True",
|
||||
lastProbeTime: 1,
|
||||
lastTransitionTime: "1",
|
||||
}
|
||||
},
|
||||
],
|
||||
hostIP: "10.0.0.1",
|
||||
podIP: "10.0.0.1",
|
||||
@@ -115,7 +115,7 @@ const pendingPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "pendingJob",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -129,7 +129,7 @@ const failedPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "failedJob",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -168,7 +168,7 @@ describe("Job Store tests", () => {
|
||||
runningPod,
|
||||
failedPod,
|
||||
pendingPod,
|
||||
succeededPod
|
||||
succeededPod,
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -177,7 +177,7 @@ describe("Job Store tests", () => {
|
||||
failedJob,
|
||||
succeededJob,
|
||||
runningJob,
|
||||
pendingJob
|
||||
pendingJob,
|
||||
]));
|
||||
|
||||
expect(statuses).toEqual([
|
||||
|
||||
@@ -27,7 +27,7 @@ describe("formatNodeTaint tests", () => {
|
||||
effect: "Foo",
|
||||
key: "hello",
|
||||
timeAdded: "pre",
|
||||
value: "a"
|
||||
value: "a",
|
||||
})).toBe("hello=a:Foo");
|
||||
});
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ runningPod.status = {
|
||||
status: "True",
|
||||
lastProbeTime: 1,
|
||||
lastTransitionTime: "1",
|
||||
}
|
||||
},
|
||||
],
|
||||
hostIP: "10.0.0.1",
|
||||
podIP: "10.0.0.1",
|
||||
@@ -128,7 +128,7 @@ describe("Pod Store tests", () => {
|
||||
succeededPod,
|
||||
failedPod,
|
||||
evictedPod,
|
||||
evictedPod
|
||||
evictedPod,
|
||||
]));
|
||||
|
||||
expect(statuses).toEqual([
|
||||
|
||||
@@ -67,7 +67,7 @@ const runningPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "runningReplicaSet",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -85,7 +85,7 @@ runningPod.status = {
|
||||
status: "True",
|
||||
lastProbeTime: 1,
|
||||
lastTransitionTime: "1",
|
||||
}
|
||||
},
|
||||
],
|
||||
hostIP: "10.0.0.1",
|
||||
podIP: "10.0.0.1",
|
||||
@@ -104,7 +104,7 @@ const pendingPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "pendingReplicaSet",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -118,7 +118,7 @@ const failedPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "failedReplicaSet",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -135,7 +135,7 @@ describe("ReplicaSet Store tests", () => {
|
||||
podsStore.items = observable.array([
|
||||
runningPod,
|
||||
failedPod,
|
||||
pendingPod
|
||||
pendingPod,
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -143,7 +143,7 @@ describe("ReplicaSet Store tests", () => {
|
||||
const statuses = Object.entries(replicaSetStore.getStatuses([
|
||||
failedReplicaSet,
|
||||
runningReplicaSet,
|
||||
pendingReplicaSet
|
||||
pendingReplicaSet,
|
||||
]));
|
||||
|
||||
expect(statuses).toEqual([
|
||||
|
||||
@@ -67,7 +67,7 @@ const runningPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "runningStatefulSet",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -85,7 +85,7 @@ runningPod.status = {
|
||||
status: "True",
|
||||
lastProbeTime: 1,
|
||||
lastTransitionTime: "1",
|
||||
}
|
||||
},
|
||||
],
|
||||
hostIP: "10.0.0.1",
|
||||
podIP: "10.0.0.1",
|
||||
@@ -104,7 +104,7 @@ const pendingPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "pendingStatefulSet",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -118,7 +118,7 @@ const failedPod = new Pod({
|
||||
ownerReferences: [{
|
||||
uid: "failedStatefulSet",
|
||||
}],
|
||||
namespace: "default"
|
||||
namespace: "default",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -136,7 +136,7 @@ describe("StatefulSet Store tests", () => {
|
||||
podsStore.items = observable.array([
|
||||
runningPod,
|
||||
failedPod,
|
||||
pendingPod
|
||||
pendingPod,
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -144,7 +144,7 @@ describe("StatefulSet Store tests", () => {
|
||||
const statuses = Object.entries(statefulSetStore.getStatuses([
|
||||
failedStatefulSet,
|
||||
runningStatefulSet,
|
||||
pendingStatefulSet
|
||||
pendingStatefulSet,
|
||||
]));
|
||||
|
||||
expect(statuses).toEqual([
|
||||
|
||||
Reference in new issue
Block a user