Add eslint rule padding-line-between-statements (#1593)

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti authored and GitHub committed 2020-12-02 09:55:52 +02:00
1 parent 7b77f18376
commit dcf253e7d5
401 files changed
+2018 -40

No files matched your search

@@ -18,7 +18,9 @@ interface Props extends KubeObjectDetailsProps<Endpoint> {
export class EndpointDetails extends React.Component<Props> {
render() {
const { object: endpoint } = this.props;
if (!endpoint) return;
return (
<div className="EndpointDetails">
<KubeObjectMeta object={endpoint}/>
@@ -21,6 +21,7 @@ export class EndpointSubsetList extends React.Component<Props> {
getAddressTableRow(ip: string) {
const { subset } = this.props;
const address = subset.getAddresses().find(address => address.getId() == ip);
return this.renderAddressTableRow(address);
}
@@ -28,6 +29,7 @@ export class EndpointSubsetList extends React.Component<Props> {
getNotReadyAddressTableRow(ip: string) {
const { subset} = this.props;
const address = subset.getNotReadyAddresses().find(address => address.getId() == ip);
return this.renderAddressTableRow(address);
}
@@ -60,6 +62,7 @@ export class EndpointSubsetList extends React.Component<Props> {
@autobind()
renderAddressTableRow(address: EndpointAddress) {
const { endpoint } = this.props;
return (
<TableRow
key={address.getId()}
@@ -51,6 +51,7 @@ export class Endpoints extends React.Component<Props> {
tableProps={{
customRowHeights: (item: Endpoint, lineHeight, paddings) => {
const lines = item.getEndpointSubsets().length || 1;
return lines * lineHeight + paddings;
}
}}