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;
|
||||
Reference in new issue
Block a user