Enforce semicolons in eslint

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti committed 2020-11-19 16:35:04 +02:00
1 parent 0f3f5611ba
commit 1477bb8274
531 files changed
+3979 -3975

No files matched your search

@@ -48,12 +48,12 @@ export class MainLayout extends React.Component<MainLayoutProps> {
getSidebarSize = () => {
return {
"--sidebar-width": `${this.sidebarWidth}px`,
}
};
}
@autobind()
adjustWidth(newWidth: number): void {
this.sidebarWidth = newWidth
this.sidebarWidth = newWidth;
}
render() {
@@ -1,4 +1,4 @@
import "./page-layout.scss"
import "./page-layout.scss";
import React from "react";
import { observer } from "mobx-react";
@@ -20,7 +20,7 @@ export interface PageLayoutProps extends React.DOMAttributes<any> {
const defaultProps: Partial<PageLayoutProps> = {
provideBackButtonNavigation: true,
contentGaps: true,
}
};
@observer
export class PageLayout extends React.Component<PageLayoutProps> {
@@ -77,6 +77,6 @@ export class PageLayout extends React.Component<PageLayoutProps> {
</div>
</div>
</div>
)
);
}
}
+3 -3
View File
@@ -27,7 +27,7 @@ import { crdStore } from "../+custom-resources/crd.store";
import { CrdList, crdResourcesRoute, crdRoute, crdURL } from "../+custom-resources";
import { CustomResources } from "../+custom-resources/custom-resources";
import { isActiveRoute, navigation } from "../../navigation";
import { isAllowedResource } from "../../../common/rbac"
import { isAllowedResource } from "../../../common/rbac";
import { Spinner } from "../spinner";
import { clusterPageMenuRegistry, clusterPageRegistry, getExtensionPageUrl } from "../../../extensions/registries";
@@ -52,7 +52,7 @@ export class Sidebar extends React.Component<Props> {
renderCustomResources() {
if (crdStore.isLoading) {
return <Spinner centerHorizontal/>
return <Spinner centerHorizontal/>;
}
return Object.entries(crdStore.groups).map(([group, crds]) => {
@@ -203,7 +203,7 @@ export class Sidebar extends React.Component<Props> {
text={title} icon={<Icon/>}
isActive={isActive}
/>
)
);
})}
</div>
</div>
@@ -1,4 +1,4 @@
import "./sub-header.scss"
import "./sub-header.scss";
import React from "react";
import { cssNames } from "../../utils";
@@ -15,11 +15,11 @@ export class SubHeader extends React.Component<SubHeaderProps> {
className = cssNames("SubHeader", {
withLine,
compact,
}, className)
}, className);
return (
<div className={className}>
{children}
</div>
)
);
}
}
+3 -3
View File
@@ -1,4 +1,4 @@
import "./sub-title.scss"
import "./sub-title.scss";
import React from "react";
import { cssNames } from "../../utils";
@@ -14,11 +14,11 @@ export class SubTitle extends React.Component<Props> {
let { className } = this.props;
className = cssNames("SubTitle", className, {
compact,
})
});
return (
<div className={className}>
{title} {children}
</div>
)
);
}
}
@@ -1,4 +1,4 @@
import "./wizard-layout.scss"
import "./wizard-layout.scss";
import React from "react";
import { observer } from "mobx-react";
import { cssNames, IClassName } from "../../utils";
@@ -39,6 +39,6 @@ export class WizardLayout extends React.Component<WizardLayoutProps> {
</div>
)}
</div>
)
);
}
}