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

@@ -67,7 +67,7 @@ describe("kubeconfig-sync.source tests", () => {
clusters: [],
users: [],
contexts: [],
currentContext: "foobar"
currentContext: "foobar",
});
expect(configToModels(config, "").length).toBe(0);
@@ -88,7 +88,7 @@ describe("kubeconfig-sync.source tests", () => {
name: "context-name",
user: "user-name",
}],
currentContext: "foobar"
currentContext: "foobar",
});
const models = configToModels(config, "/bar");
@@ -135,7 +135,7 @@ describe("kubeconfig-sync.source tests", () => {
user: "user-name",
},
}],
currentContext: "foobar"
currentContext: "foobar",
});
const rootSource = new ObservableMap<string, [Cluster, CatalogEntity]>();
const filePath = "/bar";
@@ -178,7 +178,7 @@ describe("kubeconfig-sync.source tests", () => {
user: "user-name",
},
}],
currentContext: "foobar"
currentContext: "foobar",
});
const rootSource = new ObservableMap<string, [Cluster, CatalogEntity]>();
const filePath = "/bar";
@@ -232,7 +232,7 @@ describe("kubeconfig-sync.source tests", () => {
user: "user-name",
},
}],
currentContext: "foobar"
currentContext: "foobar",
});
const rootSource = new ObservableMap<string, [Cluster, CatalogEntity]>();
const filePath = "/bar";
@@ -276,7 +276,7 @@ describe("kubeconfig-sync.source tests", () => {
user: "user-name",
},
}],
currentContext: "foobar"
currentContext: "foobar",
});
computeDiff(newContents, rootSource, filePath);
+13 -13
View File
@@ -29,18 +29,18 @@ export const catalogEntity = new GeneralEntity({
uid: "catalog-entity",
name: "Catalog",
source: "app",
labels: {}
labels: {},
},
spec: {
path: catalogURL(),
icon: {
material: "view_list",
background: "#3d90ce"
}
background: "#3d90ce",
},
},
status: {
phase: "active",
}
},
});
const preferencesEntity = new GeneralEntity({
@@ -48,18 +48,18 @@ const preferencesEntity = new GeneralEntity({
uid: "preferences-entity",
name: "Preferences",
source: "app",
labels: {}
labels: {},
},
spec: {
path: preferencesURL(),
icon: {
material: "settings",
background: "#3d90ce"
}
background: "#3d90ce",
},
},
status: {
phase: "active",
}
},
});
const welcomePageEntity = new GeneralEntity({
@@ -67,24 +67,24 @@ const welcomePageEntity = new GeneralEntity({
uid: "welcome-page-entity",
name: "Welcome Page",
source: "app",
labels: {}
labels: {},
},
spec: {
path: welcomeURL(),
icon: {
material: "meeting_room",
background: "#3d90ce"
}
background: "#3d90ce",
},
},
status: {
phase: "active",
}
},
});
const generalEntities = observable([
catalogEntity,
preferencesEntity,
welcomePageEntity
welcomePageEntity,
]);
export function syncGeneralEntities() {
+1 -1
View File
@@ -89,7 +89,7 @@ export class KubeconfigSyncManager extends Singleton {
catalogEntityRegistry.addComputedSource(KubeconfigSyncManager.syncName, computed(() => (
Array.from(iter.flatMap(
this.sources.values(),
([entities]) => entities.get()
([entities]) => entities.get(),
))
)));
+4 -4
View File
@@ -75,15 +75,15 @@ export function syncWeblinks() {
uid: weblinkData.id,
name: weblinkData.name,
source: "local",
labels: {}
labels: {},
},
spec: {
url: weblinkData.url
url: weblinkData.url,
},
status: {
phase: "available",
active: true
}
active: true,
},
});
webLinkEntities.set(weblinkData.id, [