Use @typescript-eslint/semi.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti committed 2020-11-19 18:12:52 +02:00
1 parent 0b182ccf6f
commit 460dfe4d2b
179 files changed
+556 -554

No files matched your search

@@ -58,7 +58,7 @@ export class AddSecretDialog extends React.Component<Props> {
{ key: "kubernetes.io/service-account.uid", required: true }
],
},
}
};
get types() {
return Object.keys(this.secretTemplate) as SecretType[];
@@ -72,11 +72,11 @@ export class AddSecretDialog extends React.Component<Props> {
reset = () => {
this.name = "";
this.secret = this.secretTemplate;
}
};
close = () => {
AddSecretDialog.close();
}
};
private getDataFromFields = (fields: ISecretTemplateField[] = [], processValue?: (val: string) => string) => {
return fields.reduce<any>((data, field) => {
@@ -86,7 +86,7 @@ export class AddSecretDialog extends React.Component<Props> {
}
return data;
}, {});
}
};
createSecret = async () => {
const { name, namespace, type } = this;
@@ -109,18 +109,18 @@ export class AddSecretDialog extends React.Component<Props> {
} catch (err) {
Notifications.error(err);
}
}
};
addField = (field: ISecretField) => {
const fields = this.secret[this.type][field] || [];
fields.push({ key: "", value: "" });
this.secret[this.type][field] = fields;
}
};
removeField = (field: ISecretField, index: number) => {
const fields = this.secret[this.type][field] || [];
fields.splice(index, 1);
}
};
renderFields(field: ISecretField) {
const fields = this.secret[this.type][field] || [];
@@ -49,11 +49,11 @@ export class SecretDetails extends React.Component<Props> {
Notifications.error(err);
}
this.isSaving = false;
}
};
editData = (name: string, value: string, encoded: boolean) => {
this.data[name] = encoded ? value : base64.encode(value);
}
};
render() {
const { object: secret } = this.props;
@@ -5,7 +5,7 @@ import { apiManager } from "../../api/api-manager";
@autobind()
export class SecretsStore extends KubeObjectStore<Secret> {
api = secretsApi
api = secretsApi;
}
export const secretsStore = new SecretsStore();