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,5 +36,5 @@ export default {
|
||||
if (contextName === "__internal__" || value[1].hasOwnProperty("kubeConfig")) continue;
|
||||
store.set(contextName, { kubeConfig: value[1] });
|
||||
}
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -34,5 +34,5 @@ export default {
|
||||
|
||||
store.set(contextName, { kubeConfig: cluster.kubeConfig, icon: cluster.icon || null, preferences: cluster.preferences || {}});
|
||||
}
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -39,5 +39,5 @@ export default {
|
||||
}
|
||||
store.set(clusterKey, { contextName: clusterKey, kubeConfig: value[1].kubeConfig, preferences: value[1].preferences });
|
||||
}
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -58,12 +58,12 @@ export default {
|
||||
user["auth-provider"].config = authConfig;
|
||||
kubeConfig.users = [{
|
||||
name: userObj.name,
|
||||
user
|
||||
user,
|
||||
}];
|
||||
cluster.kubeConfig = yaml.dump(kubeConfig);
|
||||
store.set(clusterKey, cluster);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -34,5 +34,5 @@ export default {
|
||||
cluster.workspace = "default";
|
||||
store.set(clusterKey, cluster);
|
||||
}
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -47,5 +47,5 @@ export default {
|
||||
if (clusters.length > 0) {
|
||||
store.set("clusters", clusters);
|
||||
}
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -87,5 +87,5 @@ export default {
|
||||
}
|
||||
|
||||
store.set("clusters", migratedClusters);
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -59,7 +59,7 @@ function mergePreferences(left: ClusterPreferences, right: ClusterPreferences):
|
||||
function mergeLabels(left: Record<string, string>, right: Record<string, string>): Record<string, string> {
|
||||
return {
|
||||
...right,
|
||||
...left
|
||||
...left,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -129,5 +129,5 @@ export default {
|
||||
}
|
||||
|
||||
store.set("clusters", [...clusters.values()]);
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -53,5 +53,5 @@ export default {
|
||||
|
||||
|
||||
store.set("clusters", migratedClusters);
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -51,7 +51,7 @@ export function joinMigrations(...declarations: MigrationDeclaration[]): Migrati
|
||||
for (const fn of fns) {
|
||||
fn(store);
|
||||
}
|
||||
}]
|
||||
)
|
||||
}],
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -33,5 +33,5 @@ export default {
|
||||
hotbar.items[0] = { entity: { uid, name, source }};
|
||||
|
||||
store.set("hotbars", [hotbar]);
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -32,7 +32,7 @@ export default {
|
||||
|
||||
store.set("hotbars", hotbars.map((hotbar) => ({
|
||||
id: uuid.v4(),
|
||||
...hotbar
|
||||
...hotbar,
|
||||
})));
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -104,7 +104,7 @@ export default {
|
||||
entity: {
|
||||
uid: generateNewIdFor(cluster),
|
||||
name: cluster.preferences.clusterName || cluster.contextName,
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -163,5 +163,5 @@ export default {
|
||||
}
|
||||
|
||||
store.set("hotbars", hotbars);
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -42,12 +42,12 @@ export default {
|
||||
hotbar.items[i].entity = {
|
||||
...item.entity,
|
||||
name: entity.metadata.name,
|
||||
source: entity.metadata.source
|
||||
source: entity.metadata.source,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
store.set("hotbars", hotbars);
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -26,5 +26,5 @@ export default {
|
||||
version: "2.1.0-beta.4",
|
||||
run(store) {
|
||||
store.set("lastSeenAppVersion", "0.0.0");
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -35,5 +35,5 @@ export default {
|
||||
preferences.hiddenTableColumns = Object.entries(oldHiddenTableColumns);
|
||||
|
||||
store.set("preferences", preferences);
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
@@ -29,7 +29,7 @@ import version503Beta1 from "./5.0.3-beta.1";
|
||||
import { fileNameMigration } from "./file-name-migration";
|
||||
|
||||
export {
|
||||
fileNameMigration
|
||||
fileNameMigration,
|
||||
};
|
||||
|
||||
export default joinMigrations(
|
||||
|
||||
@@ -35,9 +35,9 @@ export default {
|
||||
{ id: slackUrl, name: "Lens Community Slack", url: slackUrl },
|
||||
{ id: "https://kubernetes.io/docs/home/", name: "Kubernetes Documentation", url: "https://kubernetes.io/docs/home/" },
|
||||
{ id: "https://twitter.com/k8slens", name: "Lens on Twitter", url: "https://twitter.com/k8slens" },
|
||||
{ id: "https://medium.com/k8slens", name: "Lens Official Blog", url: "https://medium.com/k8slens" }
|
||||
{ id: "https://medium.com/k8slens", name: "Lens Official Blog", url: "https://medium.com/k8slens" },
|
||||
);
|
||||
|
||||
store.set("weblinks", weblinks);
|
||||
}
|
||||
},
|
||||
} as MigrationDeclaration;
|
||||
Reference in new issue
Block a user