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
@@ -56,7 +56,7 @@ export class AddHelmRepoDialog extends React.Component<Props> {
|
||||
private emptyRepo = { name: "", url: "", username: "", password: "", insecureSkipTlsVerify: false, caFile:"", keyFile: "", certFile: "" };
|
||||
|
||||
private static keyExtensions = ["key", "keystore", "jks", "p12", "pfx", "pem"];
|
||||
private static certExtensions = ["crt", "cer", "ca-bundle", "p7b", "p7c" , "p7s", "p12", "pfx", "pem"];
|
||||
private static certExtensions = ["crt", "cer", "ca-bundle", "p7b", "p7c", "p7s", "p12", "pfx", "pem"];
|
||||
|
||||
constructor(props: Props) {
|
||||
super(props);
|
||||
@@ -96,8 +96,8 @@ export class AddHelmRepoDialog extends React.Component<Props> {
|
||||
buttonLabel: `Use file`,
|
||||
filters: [
|
||||
fileFilter,
|
||||
{ name: "Any", extensions: ["*"] }
|
||||
]
|
||||
{ name: "Any", extensions: ["*"] },
|
||||
],
|
||||
});
|
||||
|
||||
if (!canceled && filePaths.length) {
|
||||
@@ -116,7 +116,7 @@ export class AddHelmRepoDialog extends React.Component<Props> {
|
||||
}
|
||||
}
|
||||
|
||||
renderFileInput(placeholder:string, fileType:FileType ,fileExtensions:string[]){
|
||||
renderFileInput(placeholder:string, fileType:FileType, fileExtensions:string[]){
|
||||
return(
|
||||
<div className="flex gaps align-center">
|
||||
<Input
|
||||
|
||||
@@ -31,7 +31,7 @@ enum EditorLineNumbersStyles {
|
||||
on = "On",
|
||||
off = "Off",
|
||||
relative = "Relative",
|
||||
interval = "Interval"
|
||||
interval = "Interval",
|
||||
}
|
||||
|
||||
export const Editor = observer(() => {
|
||||
|
||||
@@ -31,7 +31,7 @@ export const Extensions = observer(() => {
|
||||
<section id="extensions">
|
||||
<h2>Extensions</h2>
|
||||
{extensions.filter(e => !e.showInPreferencesTab).map((extension) =>
|
||||
<ExtensionSettings key={extension.id} {...extension}/>
|
||||
<ExtensionSettings key={extension.id} {...extension}/>,
|
||||
)}
|
||||
</section>
|
||||
);
|
||||
|
||||
@@ -91,7 +91,7 @@ export class HelmCharts extends React.Component {
|
||||
this.addedRepos.delete(repo.name);
|
||||
} catch (err) {
|
||||
Notifications.error(
|
||||
<>Removing helm branch <b>{repo.name}</b> has failed: {String(err)}</>
|
||||
<>Removing helm branch <b>{repo.name}</b> has failed: {String(err)}</>,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ export class KubeconfigSyncs extends React.Component {
|
||||
disposeOnUnmount(this, [
|
||||
reaction(() => Array.from(this.syncs.entries(), ([filePath, { data }]) => [filePath, data]), syncs => {
|
||||
UserStore.getInstance().syncKubeconfigEntries.replace(syncs);
|
||||
})
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ export const KubectlBinaries = observer(() => {
|
||||
const pathValidator = downloadPath ? InputValidators.isPath : undefined;
|
||||
const downloadMirrorOptions: SelectOption<string>[] = Array.from(
|
||||
packageMirrors.entries(),
|
||||
([value, { label, platforms }]) => ({ value, label, platforms })
|
||||
([value, { label, platforms }]) => ({ value, label, platforms }),
|
||||
);
|
||||
|
||||
const save = () => {
|
||||
|
||||
Reference in new issue
Block a user