Lint: comma-spacing (error) & comma-dangle (error) (#4200)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-11-02 17:38:20 -04:00
1 parent 02e77afcd1
commit c6dce043a7
406 files changed
+1590 -1580

No files matched your search

@@ -35,8 +35,8 @@ import { AppPaths } from "../../../../common/app-paths";
jest.mock("react-monaco-editor", () => ({
monaco: {
editor: {
getModel: jest.fn()
}
getModel: jest.fn(),
},
},
}));
@@ -58,11 +58,11 @@ jest.mock("electron", () => ({
AppPaths.init();
const initialTabs: DockTab[] = [
{ id: "terminal", kind: TabKind.TERMINAL, title: "Terminal", pinned: false, },
{ id: "create", kind: TabKind.CREATE_RESOURCE, title: "Create resource", pinned: false, },
{ id: "edit", kind: TabKind.EDIT_RESOURCE, title: "Edit resource", pinned: false, },
{ id: "install", kind: TabKind.INSTALL_CHART, title: "Install chart", pinned: false, },
{ id: "logs", kind: TabKind.POD_LOGS, title: "Logs", pinned: false, },
{ id: "terminal", kind: TabKind.TERMINAL, title: "Terminal", pinned: false },
{ id: "create", kind: TabKind.CREATE_RESOURCE, title: "Create resource", pinned: false },
{ id: "edit", kind: TabKind.EDIT_RESOURCE, title: "Edit resource", pinned: false },
{ id: "install", kind: TabKind.INSTALL_CHART, title: "Install chart", pinned: false },
{ id: "logs", kind: TabKind.POD_LOGS, title: "Logs", pinned: false },
];
const getComponent = () => (
@@ -129,7 +129,7 @@ describe("<DockTabs />", () => {
TabKind.CREATE_RESOURCE,
TabKind.EDIT_RESOURCE,
TabKind.INSTALL_CHART,
TabKind.POD_LOGS
TabKind.POD_LOGS,
]);
});
@@ -170,7 +170,7 @@ describe("<DockTabs />", () => {
rerender(getComponent());
expect(getTabKinds()).toEqual(
initialTabs.slice(0, 4).map(tab => tab.kind)
initialTabs.slice(0, 4).map(tab => tab.kind),
);
});
@@ -191,8 +191,8 @@ describe("<DockTabs />", () => {
it("disables 'Close To The Right' item if last tab clicked", () => {
dockStore.tabs = [
{ id: "terminal", kind: TabKind.TERMINAL, title: "Terminal", pinned: false, },
{ id: "logs", kind: TabKind.POD_LOGS, title: "Pod Logs", pinned: false, },
{ id: "terminal", kind: TabKind.TERMINAL, title: "Terminal", pinned: false },
{ id: "logs", kind: TabKind.POD_LOGS, title: "Pod Logs", pinned: false },
];
const { container, getByText } = renderTabs();
const tab = container.querySelectorAll(".Tab")[1];
@@ -88,7 +88,7 @@ const getFewPodsTabData = (): LogTabData => {
describe("<LogResourceSelector />", () => {
beforeEach(() => {
mockFs({
"tmp": {}
"tmp": {},
});
UserStore.createInstance();
ThemeStore.createInstance();
@@ -76,7 +76,7 @@ describe("log tab store", () => {
logTabStore.createPodTab({
selectedPod,
selectedContainer
selectedContainer,
});
expect(logTabStore.getData(dockStore.selectedTabId)).toEqual({
@@ -84,7 +84,7 @@ describe("log tab store", () => {
selectedPod,
selectedContainer,
showTimestamps: false,
previous: false
previous: false,
});
});
@@ -95,7 +95,7 @@ describe("log tab store", () => {
logTabStore.createPodTab({
selectedPod,
selectedContainer
selectedContainer,
});
expect(logTabStore.getData(dockStore.selectedTabId)).toEqual({
@@ -103,7 +103,7 @@ describe("log tab store", () => {
selectedPod,
selectedContainer,
showTimestamps: false,
previous: false
previous: false,
});
});
@@ -113,7 +113,7 @@ describe("log tab store", () => {
logTabStore.createPodTab({
selectedPod,
selectedContainer
selectedContainer,
});
podsStore.items.pop();
@@ -123,7 +123,7 @@ describe("log tab store", () => {
selectedPod,
selectedContainer,
showTimestamps: false,
previous: false
previous: false,
});
});
@@ -133,7 +133,7 @@ describe("log tab store", () => {
logTabStore.createPodTab({
selectedPod,
selectedContainer
selectedContainer,
});
podsStore.items.push(new Pod(deploymentPod3));
@@ -143,7 +143,7 @@ describe("log tab store", () => {
selectedPod,
selectedContainer,
showTimestamps: false,
previous: false
previous: false,
});
});
@@ -154,7 +154,7 @@ describe("log tab store", () => {
const id = logTabStore.createPodTab({
selectedPod,
selectedContainer
selectedContainer,
});
podsStore.items.clear();
@@ -27,7 +27,7 @@ export const dockerPod = {
name: "dockerExporter",
creationTimestamp: "dummy",
resourceVersion: "dummy",
namespace: "default"
namespace: "default",
},
spec: {
initContainers: [] as any,
@@ -35,8 +35,8 @@ export const dockerPod = {
{
name: "docker-exporter",
image: "docker.io/prom/node-exporter:v1.0.0-rc.0",
imagePullPolicy: "pull"
}
imagePullPolicy: "pull",
},
],
serviceAccountName: "dummy",
serviceAccount: "dummy",
@@ -52,7 +52,7 @@ export const dockerPod = {
hostIP: "dummy",
podIP: "dummy",
startTime: "dummy",
}
},
};
export const deploymentPod1 = {
@@ -71,32 +71,32 @@ export const deploymentPod1 = {
uid: "uuid",
controller: true,
blockOwnerDeletion: true,
}]
}],
},
spec: {
initContainers: [
{
name: "init-node-exporter",
image: "docker.io/prom/node-exporter:v1.0.0-rc.0",
imagePullPolicy: "pull"
imagePullPolicy: "pull",
},
{
name: "init-node-exporter-1",
image: "docker.io/prom/node-exporter:v1.0.0-rc.0",
imagePullPolicy: "pull"
}
imagePullPolicy: "pull",
},
],
containers: [
{
name: "node-exporter",
image: "docker.io/prom/node-exporter:v1.0.0-rc.0",
imagePullPolicy: "pull"
imagePullPolicy: "pull",
},
{
name: "node-exporter-1",
image: "docker.io/prom/node-exporter:v1.0.0-rc.0",
imagePullPolicy: "pull"
}
imagePullPolicy: "pull",
},
],
serviceAccountName: "dummy",
serviceAccount: "dummy",
@@ -112,7 +112,7 @@ export const deploymentPod1 = {
hostIP: "dummy",
podIP: "dummy",
startTime: "dummy",
}
},
};
export const deploymentPod2 = {
@@ -131,32 +131,32 @@ export const deploymentPod2 = {
uid: "uuid",
controller: true,
blockOwnerDeletion: true,
}]
}],
},
spec: {
initContainers: [
{
name: "init-node-exporter",
image: "docker.io/prom/node-exporter:v1.0.0-rc.0",
imagePullPolicy: "pull"
imagePullPolicy: "pull",
},
{
name: "init-node-exporter-1",
image: "docker.io/prom/node-exporter:v1.0.0-rc.0",
imagePullPolicy: "pull"
}
imagePullPolicy: "pull",
},
],
containers: [
{
name: "node-exporter",
image: "docker.io/prom/node-exporter:v1.0.0-rc.0",
imagePullPolicy: "pull"
imagePullPolicy: "pull",
},
{
name: "node-exporter-1",
image: "docker.io/prom/node-exporter:v1.0.0-rc.0",
imagePullPolicy: "pull"
}
imagePullPolicy: "pull",
},
],
serviceAccountName: "dummy",
serviceAccount: "dummy",
@@ -172,7 +172,7 @@ export const deploymentPod2 = {
hostIP: "dummy",
podIP: "dummy",
startTime: "dummy",
}
},
};
export const deploymentPod3 = {
@@ -191,20 +191,20 @@ export const deploymentPod3 = {
uid: "uuid",
controller: true,
blockOwnerDeletion: true,
}]
}],
},
spec: {
containers: [
{
name: "node-exporter",
image: "docker.io/prom/node-exporter:v1.0.0-rc.0",
imagePullPolicy: "pull"
imagePullPolicy: "pull",
},
{
name: "node-exporter-1",
image: "docker.io/prom/node-exporter:v1.0.0-rc.0",
imagePullPolicy: "pull"
}
imagePullPolicy: "pull",
},
],
serviceAccountName: "dummy",
serviceAccount: "dummy",
@@ -220,5 +220,5 @@ export const deploymentPod3 = {
hostIP: "dummy",
podIP: "dummy",
startTime: "dummy",
}
},
};