Lint: object-curly-spacing (error) (#4198)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-11-01 08:45:45 -04:00
1 parent 0759b80435
commit 41863e87ce
89 files changed
+230 -216

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ export default {
if (contextName === "__internal__") continue;
const cluster = value[1];
store.set(contextName, { kubeConfig: cluster.kubeConfig, icon: cluster.icon || null, preferences: cluster.preferences || {} });
store.set(contextName, { kubeConfig: cluster.kubeConfig, icon: cluster.icon || null, preferences: cluster.preferences || {}});
}
}
} as MigrationDeclaration;
+2 -2
View File
@@ -28,9 +28,9 @@ export default {
version: "5.0.0-alpha.0",
run(store) {
const hotbar = getEmptyHotbar("default");
const { metadata: { uid, name, source } } = catalogEntity;
const { metadata: { uid, name, source }} = catalogEntity;
hotbar.items[0] = { entity: { uid, name, source } };
hotbar.items[0] = { entity: { uid, name, source }};
store.set("hotbars", [hotbar]);
}
+6 -6
View File
@@ -53,9 +53,9 @@ export default {
// Hotbars might be empty, if some of the previous migrations weren't run
if (hotbars.length === 0) {
const hotbar = getEmptyHotbar("default");
const { metadata: { uid, name, source } } = catalogEntity;
const { metadata: { uid, name, source }} = catalogEntity;
hotbar.items[0] = { entity: { uid, name, source } };
hotbar.items[0] = { entity: { uid, name, source }};
hotbars.push(hotbar);
}
@@ -132,7 +132,7 @@ export default {
if (hotbars.every(hotbar => hotbar.items.every(item => item?.entity?.uid !== "catalog-entity"))) {
// note, we will add a new whole hotbar here called "default" if that was previously removed
const defaultHotbar = hotbars.find(hotbar => hotbar.name === "default");
const { metadata: { uid, name, source } } = catalogEntity;
const { metadata: { uid, name, source }} = catalogEntity;
if (defaultHotbar) {
const freeIndex = defaultHotbar.items.findIndex(isNull);
@@ -142,15 +142,15 @@ export default {
// called "default" is full than overriding a hotbar item
const hotbar = getEmptyHotbar("initial");
hotbar.items[0] = { entity: { uid, name, source } };
hotbar.items[0] = { entity: { uid, name, source }};
hotbars.unshift(hotbar);
} else {
defaultHotbar.items[freeIndex] = { entity: { uid, name, source } };
defaultHotbar.items[freeIndex] = { entity: { uid, name, source }};
}
} else {
const hotbar = getEmptyHotbar("default");
hotbar.items[0] = { entity: { uid, name, source } };
hotbar.items[0] = { entity: { uid, name, source }};
hotbars.unshift(hotbar);
}
}