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
+6
-6
@@ -128,7 +128,7 @@ describe("<DeleteClusterDialog />", () => {
|
||||
id: "test",
|
||||
contextName: "test",
|
||||
preferences: {
|
||||
clusterName: "minikube"
|
||||
clusterName: "minikube",
|
||||
},
|
||||
kubeConfigPath: "./temp-kube-config",
|
||||
});
|
||||
@@ -146,7 +146,7 @@ describe("<DeleteClusterDialog />", () => {
|
||||
id: "other-cluster",
|
||||
contextName: "other-context",
|
||||
preferences: {
|
||||
clusterName: "other-cluster"
|
||||
clusterName: "other-cluster",
|
||||
},
|
||||
kubeConfigPath: "./temp-kube-config",
|
||||
});
|
||||
@@ -163,7 +163,7 @@ describe("<DeleteClusterDialog />", () => {
|
||||
id: "other-cluster",
|
||||
contextName: "other-context",
|
||||
preferences: {
|
||||
clusterName: "other-cluster"
|
||||
clusterName: "other-cluster",
|
||||
},
|
||||
kubeConfigPath: "./temp-kube-config",
|
||||
});
|
||||
@@ -184,7 +184,7 @@ describe("<DeleteClusterDialog />", () => {
|
||||
id: "some-cluster",
|
||||
contextName: "test",
|
||||
preferences: {
|
||||
clusterName: "test"
|
||||
clusterName: "test",
|
||||
},
|
||||
kubeConfigPath: "./temp-kube-config",
|
||||
});
|
||||
@@ -209,7 +209,7 @@ describe("<DeleteClusterDialog />", () => {
|
||||
id: "some-cluster",
|
||||
contextName: "test",
|
||||
preferences: {
|
||||
clusterName: "test"
|
||||
clusterName: "test",
|
||||
},
|
||||
kubeConfigPath: "./temp-kube-config",
|
||||
});
|
||||
@@ -247,7 +247,7 @@ describe("<DeleteClusterDialog />", () => {
|
||||
id: "other-cluster",
|
||||
contextName: "other-context",
|
||||
preferences: {
|
||||
clusterName: "other-cluster"
|
||||
clusterName: "other-cluster",
|
||||
},
|
||||
kubeConfigPath: "./temp-kube-config",
|
||||
});
|
||||
|
||||
@@ -45,7 +45,7 @@ type DialogState = {
|
||||
};
|
||||
|
||||
const dialogState: DialogState = observable({
|
||||
isOpen: false
|
||||
isOpen: false,
|
||||
});
|
||||
|
||||
type Props = {};
|
||||
@@ -59,7 +59,7 @@ export class DeleteClusterDialog extends React.Component {
|
||||
super(props);
|
||||
makeObservable(this, {
|
||||
showContextSwitch: observable,
|
||||
newCurrentContext: observable
|
||||
newCurrentContext: observable,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ export class DeleteClusterDialog extends React.Component {
|
||||
|
||||
removeContext() {
|
||||
dialogState.config.contexts = dialogState.config.contexts.filter(item =>
|
||||
item.name !== dialogState.cluster.contextName
|
||||
item.name !== dialogState.cluster.contextName,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user