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
@@ -53,7 +53,7 @@ export class ClusterRoleBindingDetails extends React.Component<Props> {
|
||||
disposeOnUnmount(this, [
|
||||
reaction(() => this.props.object, () => {
|
||||
this.selectedSubjects.clear();
|
||||
})
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ export class ClusterRoleBindingDetails extends React.Component<Props> {
|
||||
labelOk: `Remove`,
|
||||
message: (
|
||||
<p>Remove selected bindings for <b>{clusterRoleBinding.getName()}</b>?</p>
|
||||
)
|
||||
),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ export class ClusterRoleBindingDialog extends React.Component<Props> {
|
||||
return {
|
||||
value: `${account.getName()}%${account.getNs()}`,
|
||||
account,
|
||||
label: <><Icon small material="account_box" /> {name} ({namespace})</>
|
||||
label: <><Icon small material="account_box" /> {name} ({namespace})</>,
|
||||
};
|
||||
});
|
||||
}
|
||||
@@ -152,7 +152,7 @@ export class ClusterRoleBindingDialog extends React.Component<Props> {
|
||||
|
||||
this.selectedAccounts.replace(
|
||||
serviceAccountsStore.items
|
||||
.filter(sa => accountNames.has(sa.getName()))
|
||||
.filter(sa => accountNames.has(sa.getName())),
|
||||
);
|
||||
this.selectedUsers.replace(uSubjects.map(user => user.name));
|
||||
this.selectedGroups.replace(gSubjects.map(group => group.name));
|
||||
@@ -178,7 +178,7 @@ export class ClusterRoleBindingDialog extends React.Component<Props> {
|
||||
roleRef: {
|
||||
name: selectedRoleRef.getName(),
|
||||
kind: selectedRoleRef.kind,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
showDetails(selfLink);
|
||||
|
||||
@@ -36,7 +36,7 @@ export class ClusterRoleBindingsStore extends KubeObjectStore<ClusterRoleBinding
|
||||
protected sortItems(items: ClusterRoleBinding[]) {
|
||||
return super.sortItems(items, [
|
||||
clusterRoleBinding => clusterRoleBinding.kind,
|
||||
clusterRoleBinding => clusterRoleBinding.getName()
|
||||
clusterRoleBinding => clusterRoleBinding.getName(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user