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
@@ -49,7 +49,7 @@ export class ClusterHomeDirSetting extends React.Component<Props> {
|
||||
autorun(() => {
|
||||
this.directory = this.props.cluster.preferences.terminalCWD || "";
|
||||
this.defaultNamespace = defaultNamespace || "";
|
||||
})
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ export class ClusterMetricsSetting extends React.Component<Props> {
|
||||
|
||||
onChangeButton = () => {
|
||||
Object.keys(ClusterMetricsResourceType).map(value =>
|
||||
this.hiddenMetrics.add(value)
|
||||
this.hiddenMetrics.add(value),
|
||||
);
|
||||
this.save();
|
||||
};
|
||||
|
||||
@@ -46,7 +46,7 @@ export class ClusterNameSetting extends React.Component<Props> {
|
||||
disposeOnUnmount(this,
|
||||
autorun(() => {
|
||||
this.name = this.props.cluster.preferences.clusterName || this.props.entity.metadata.name;
|
||||
})
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ export class ClusterPrometheusSetting extends React.Component<Props> {
|
||||
@computed get options(): SelectOption<string>[] {
|
||||
return [
|
||||
{ value: "", label: "Auto detect" },
|
||||
...this.loadedOptions.map(({ name, id }) => ({ value: id, label: name }))
|
||||
...this.loadedOptions.map(({ name, id }) => ({ value: id, label: name })),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ export class ClusterPrometheusSetting extends React.Component<Props> {
|
||||
return Boolean(
|
||||
this.loadedOptions
|
||||
.find(opt => opt.id === this.provider)
|
||||
?.isConfigurable
|
||||
?.isConfigurable,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ export class ClusterPrometheusSetting extends React.Component<Props> {
|
||||
} else {
|
||||
this.provider = "";
|
||||
}
|
||||
})
|
||||
}),
|
||||
);
|
||||
|
||||
metricsApi
|
||||
@@ -108,7 +108,7 @@ export class ClusterPrometheusSetting extends React.Component<Props> {
|
||||
namespace: parsed[0],
|
||||
service: parsed[1],
|
||||
port: parseInt(parsed[2]),
|
||||
prefix: apiPrefix
|
||||
prefix: apiPrefix,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ export class ClusterProxySetting extends React.Component<Props> {
|
||||
disposeOnUnmount(this,
|
||||
autorun(() => {
|
||||
this.proxy = this.props.cluster.preferences.httpsProxy || "";
|
||||
})
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user